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:
.jarfile of your Java project.
.jarfile inside the BPEL process, copy the JAR in the same project's
SCA-INF/libfolder and include the JAR by going to Libraries and Classpath.
importstatements inside the source code of BPEL to import the Java class. Use the
bpelx:execfor importing Java classes and libraries. Examples are listed as ...