Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This example has a client application (JMSClient) , JmsClient, which sends a SOAP message to a JmsServiceComponent binding component (myComponent) which in the ServiceMix JBI. myComponent forwards the request to the PXE BPEL engine and waits for a response. The client, JmsClient, is placing a book order and the ServiceMix binding component, _myComponent, receives the order and sends it to the Webservice that takes orders. The client and the binding component (myComponent) communicate via JMS. The binding component (myComponent) and the PXE service engine communicate over the Normalized Mesage Message Router (NMR). A simple JMS client is provided so that messages can sent and received from the JMSService. This example uses PXE integration to demonstrate the use of BPEL with ServiceMix.

...

Warning
titleWarning

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. So before trying to run Before running this demo, use Java 1.5 to startup ServiceMix.

Running the BPEL Example

First, run ServiceMix with a JNDI context configured so that PXE can be deployed.

PXE has a JBI component and deployment unit which can be auto-deployed in any JBI compliant container. To use PXE with ServiceMix put the PXE deployment unit must be put into the install directory in the BPEL example directory and the component will be auto-deployed in ServiceMix. This has already been done for you - take a look in at the install directory under the servicemix_install_dir\examples\bpel directory to see PXE jar file.

  1. From a command shell, go to the BPEL example directory:
    Code Block
    
    cd [servicemix_install_dir]\examples\bpel
    
    where servicemix_install_dir is the directory in which ServiceMix was installed.
  2. Then type:
    Code Block
    
    [servicemix_install_dir]\bin\servicemix servicemix.xml
    
    OR
    
    ..\..\bin\servicemix servicemix.xml
    

You should now have PXE deployed with a JBI service engine together with a deployment unit for a specific BPEL process.

...


  1. 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

...

  1. ant from the BPEL

...

  1. directory

...

  1. : servicemix_install_dir\examples\bpel

...

  1. . 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.

Stopping the BPEL Example

To terminate the BPEL example type "CTRL-C" in the command shell in which it is running and answer "y" to the "Terminate batch job (y/n)?" question.

...