Java Reference
In-Depth Information
Deploying a Process to Apache ODE
Problem
You have Apache ODE up and running, and you want to deploy a process to it.
Solution
Deploy one of the examples that ships with ODE by copying the examples folder from
the ODE distribution into the $TOMCAT_HOME/webapps/ode/WEB-INF/processesdirect-
ory and then invoking the provided sample client, which sends a SOAP message to the pro-
cess.
If you already have a process developed that ODE can handle, copy the entire directory con-
tents and the enclosing directory itself into the processes folder under WEB-INF/processes
directory, which is located in your application server's exploded ODE WAR file.
NOTE
In Glassfish, you can put the process under the exploded ODE WAR at $GLASSFISH_HOME/do-
mains/domain_name/applications/j2ee-modules/ode/WEB-INF/processes .
Discussion
The ODE examples are easy to use and are self-contained. By deploying the examples and
browsing the code, you can quickly get a feel for how BPEL works, which will give you a
larger context when we examine local BPEL constructs later.
The examples use an executable script to send SOAP messages from the filesystem into the
BPEL process. We'll start with the HelloWorld2 example.
Running the HelloWorld2 example
Navigate to the directory into which you inflated the ODE ZIP distribution. This will be
something like apache-ode-war-1.1.1. Navigate to the bindirectory, and you should see a file
called sendsoap. This executable will set up your classpath to include libraries in the ode/lib
directory, and then invoke a class called HttpSoapSender in ode-tools.jar.
The first thing to do is get the BPEL executables deployed so that you have something
to invoke. To do this, copy the $ODE_HOME/examples/HelloWorld2 directory into the
Search WWH ::




Custom Search