Skip to content

An example showing how to work with Camel,SAP JCOClient and Spring Boot

Notifications You must be signed in to change notification settings

wangyan100/sapjcoclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integrate Sap JCOClient with Springboot and Apache Camel

The usecase

Camel Timer-> SAP ABAP RFC call(via Camel Processor) -> FileSystem

I wrote a SpringBoot+Apachecamel Application to demonstrate how to call SAP's ABAP function' via Camel Processor and store the result at file system.

prepare sap jco connector libs

copy jco jars, .dll (for windows), and .so(for linux) files to lib directory as below shown

image-jco lib

run apache camel springboot application

  • Windows
set SAPSYSTEM=<sap system name>
set ASHOST=<jco client ashost>
set SAPCLIENTID=<sap system clientId>
set USERNAME=<sap username>
set PASSWORD=<sap password>
  • Linux
export SAPSYSTEM=<sap system name>
export ASHOST=<jco client ashost>
export SAPCLIENTID=<sap system clientId>
export USERNAME=<sap username>
export PASSWORD=<sap password>

run test

mvn -Dtest=sample.camel.SampleJCOClientApplicationTests   test

run program

mvn spring-boot:run 

check result and output

You will see ABAP function's result at console and it will also be stored at file directory sapoutput image-1

About

An example showing how to work with Camel,SAP JCOClient and Spring Boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages