How To Use Java Embedding in a BPEL Process in Oracle JDeveloper

To use Java embedding in a BPEL process in Oracle JDeveloper:

  1. From the Components window, expand Oracle Extensions.
  2. Drag the Java Embedding activity into the designer.
  3. Click the Java Embedding activity to display its property fields in the Property Inspector or double-click the Java Embedding activity to display the Java Embedding dialog.

    For information about editing activities in the Property Inspector, see How to Edit BPEL Activities in the Property Inspector.

  4. In the Name field, enter a name.
  5. In the Code Snippet field, enter (or cut and paste) the Java code. Figure 14-1 provides details.

    Figure 14-1 bpel:exec Code Example

    Description of Figure 14-1 follows
    Description of "Figure 14-1 bpel:exec Code Example"

Note:

As an alternative to writing Java code in the Java Embedding activity, you can place your Java code in a JAR file, put it in the class path, and call your methods from within the Java Embedding activity.