BPEL
javaexec Java Execution
Java Execution BPEL4WS process
Example
This example demonstrates how the Java code can be embedded in a BPEL process.
The example contains java code which gets data from BPEL variable, prints string to the console and returns string.
To build and run the example follow the steps bellow:
- Make sure system calls are enabled in virtuoso.ini (AllowOSCalls parameter).
- Make sure CLASSPATH environment variable contains "classlib" entry.
- Make sure you are running java enabled server (virtuoso-odbc-javavm-t or virtuoso-odbc-javavm-clr-t).
- Login into the BPEL UI via http://host:port/BPELGUI.
- From the 'Home' tab page go to section 'Tasks' and click 'Upload Process' link. Another way is to choose 'Processes' tab and go to the 'Process Upload' sub-tab.
- For the given entry form in the "Load Deployment Descriptor URI" field type 'http://host:port/BPELDemo/java_exec/bpel.xml'.
- Choose the 'Import Process' button.
- Choose the 'Compile process' button.
- If compilation succeeds, will go to the 'Processes' page where the process will be in the given processes list.
- To test the process click "Test" in the listing. This goes to a page allowing you to enter a start message for creating a new instance of this process.
| View the source | Action |
|---|---|
| 1. bpel.xml | |
| 2. java_exec.bpel | |
| 3. java_exec.wsdl |
OpenLink Home
Technical Support