O'Reilly logo

Java SOA Cookbook by Eben Hewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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/processes directory and then invoking the provided sample client, which sends a SOAP message to the process.

If you already have a process developed that ODE can handle, copy the entire directory contents 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/domains/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 bin directory, and you should see a file called sendsoap. This executable will set up your classpath to include libraries in the ode/lib directory, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required