O'Reilly logo

Oracle SOA BPEL Process Manager 11gR1 – A Hands-on Tutorial by Ravi Saraswathi, Jaswant Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Invoking Java from BPEL

Another option to call Java from BPEL is using SOAP to wrap the Java code as a web service and invoke the web service from BPEL

In order to use a Java method from an already created Java project, you could perform the following steps:

  1. Create a .jar file of your Java project.
  2. To use a Java class from the .jar file inside the BPEL process, copy the JAR in the same project's SCA-INF/lib folder and include the JAR by going to Libraries and Classpath.
  3. Use the Java Embedding activity for writing Java programs to invoke the method from the .jar file.
  4. Use import statements inside the source code of BPEL to import the Java class. Use the import attribute of bpelx:exec for importing Java classes and libraries. Examples are listed as ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required