When using Java code inside the BPEL process we use the Java Embedding activity. At the moment both versions of BPEL processes (1.1 and 2.0) are widely used. Consequently, we will address the use of the Java code placeholder in both types of BPEL processes.
To complete this recipe, we need nothing special. We just create an empty composite with two empty synchronous BPEL processes. We name them BPEL_and_Java_1_1
and BPEL_and_Java_2_0
, each addressing its BPEL version respectively.
The steps involved in using the Java code placeholder in the BPEL process are as follows:
Open the BPEL_and_Java_1_1 process.
From the Component Palette, select Oracle Extensions.
Pick the Java Embedding component and drop it into the BPEL process. We can see the BPEL process with the Java Embedding activity inside it.
Now open the BPEL_and_Java_2_0 process.
Again in the Component Palette select Oracle Extensions.
Pick the Java Embedding...