Table of Contents |
---|
Introduction
This sample demonstrates one demonstrates how one way message bridging from JMS to HTTP can be done using the inbound JMS endpoint.
...
- Download and set up Apache ActiveMQ. Instructions can be found in section Installation Prerequisites.
Copy the following client libraries from the
ActiveMQ 5.8.0 and above<AMQ_HOME>/lib
directory to the<
ESB_HOME>/repository/components/lib
directory.activemq-broker-5.8.0.jar
activemq-client-5.8.0.jar
geronimo-jms_1.1_spec-1.1.1.jar
geronimo-j2ee-management_1.1_spec-1.0.1.jar
hawtbuf-1.9.jar
Earlier version of ActiveMQ
activemq-core-5.5.1.jar
geronimo-j2ee-management_1.0_spec-1.0.jar
geronimo-jms_1.1_spec-1.1.1.jar
Building the sample
The XML configuration for this sample is as follows:
...
- Log on to the ActiveMQ console via using the http://localhost:8161/admin url.
- Browse the queue
ordersQueue
listening via the above endpoint. Add a new message with the following content to the queue:
Code Block language html/xml <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing"> <soapenv:Body> <m0:getQuote xmlns:m0="http://services.samples"> <m0:request> <m0:symbol>IBM</m0:symbol> </m0:request> </m0:getQuote> </soapenv:Body> </soapenv:Envelope>
Analyzing the output
You will see that the endpoint JMS endpoint gets the message from the queue and sends it to the stock quote service.
...