...
Warning | ||
---|---|---|
| ||
Note that ServiceMix works on any Java SE 1.4 or later environment; however to use PXE you need to use a Java SE 5 or later platform. Before running this demo, use Java 1.5 to startup ServiceMix. |
Running the BPEL Example
Before running the example, the following setup must be done: PXE has a JBI component and deployment unit which can be auto-deployed in any JBI compliant container, in this case ServiceMix. To use PXE with ServiceMix the PXE deployment unit must be placed in the servicemix_install_dir\examples\bpel
directory and then the component will be auto-deployed in ServiceMix. The PXE deployment unit has already been put into the install
directory for you - take a look at the servicemix_install_dir\examples\bpel\install
directory to see PXE jar file.
Perform the following steps to run the BPEL example:
- From a command shell, go to the BPEL example directory:
whereCode Block cd [servicemix_install_dir]\examples\bpel
servicemix_install_dir
is the directory in which ServiceMix was installed. - Then type:
Code Block [servicemix_install_dir]\bin\servicemix servicemix.xml OR ..\..\bin\servicemix servicemix.xml
- To trigger the BPEL business process, send it some messages. To do this, compile and run a simple JMS client. The client is built and run from source using Ant. Execute ant from the BPEL directory:
servicemix_install_dir\examples\bpel
. To run the JMS client type:Code Block ant
Ant will compile and run the simple JMS client, JmsClient, which performs a JMS based request-response into the ServiceMix container before returning the results to the console.
...