Note that WSO2 EI is shipped with the following changes to what is mentioned in this documentation:
repository/samples/directory that includes all Integration profile samples is changed to
repository/samples/resources/directory that includes all artifacts related to the Integration profile samples is changed to
This sample demonstrates how one way message bridging fromto HTTP can be done using the inbound JMS endpoint.
- Download and set up Apache ActiveMQ. For more information, see the ActiveMQ getting started guide.
Copy the following client libraries from theActiveMQ 5.8.0 and above
<AMQ_HOME>/libdirectory to the
Earlier version of ActiveMQ
Building the sample
The XML configuration for this sample is as follows:
This configuration file
synapse_sample_901.xml is available in the
To build the sample
Start the ESB Profile with the sample 901 configuration. For instructions on starting a sample ESB configuration, see Starting the ESB with a sample configuration.
The operation log keeps running until the server starts, which usually takes several seconds. Wait until the server has fully booted up and displays a message similar to "WSO2 Carbon started in n seconds."
Start the Axis2 server. For instructions on starting the Axis2 server, see Starting the Axis2 server.
Deploy the back-end service SimpleStockQuoteService. For instructions on deploying sample back-end services, see Deploying sample back-end services.
Executing the sample
To execute the sample client
- Log on to the ActiveMQ console using the http://localhost:8161/admin url.
- Browse the queue
ordersQueuelistening via the above endpoint.
Add a new message with the following content to the queue:
Analyzing the output
You will see that the JMS endpoint gets the message from the queue and sends it to the stock quote service.