Overview of the ServiceMix 1.x JMS Binding Example
This document describes how to run the JMS Binding example and provides details about what it does. For information on the business use case, please refer to: Use Case for Basic.
The Basic example illustrates the following:
- use of declarative programming
- how to perform JMS integration in ServiceMix
- how to use an ActiveMQ message broker
- how to use the Jencks JCA container
- how to use the Geronimo Transaction Manager via the Jencks factory bean
The source code for the Basic JMS Binding example is located in the ServiceMix installation directory under the examples\basicjms-binding
directory in the servicemix.xml
file. It is recommended that you refer to the source code while reading this document.
There are several components in the servicemix.xml
file. One component sets off a trigger to send messages to a source destination. Then those messages are consumed by another component and sent to a different output destination. A trace component displays the messages as they arrive.
Running the
...
JMS Binding Example
- From a command shell, go to the Basic example directory:
Code Block cd [servicemix_install_dir]\examples\
...
jms-binding
- Then type:
whereCode Block [servicemix_install_dir]\bin\servicemix servicemix.xml
servicemix_install_dir
is the directory in which ServiceMix was installed. - 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 code 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.
Stopping the Basic Example
To terminate the Basic example type "CTRL-C" in the command shell in which it is running and answer "y" to the "Terminate batch job (y/n)?" question.
...
The diagram below illustrates the flow of messages through the Basic JMS Binding components.
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
...