Objective: Demonstrate one way message bridging fromto HTTP using inbound JMS endpoint.
- Download and set up Apache ActiveMQ. Instructions can be found in section Installation Prerequisites.
Copy the following client libraries from <AMQ_HOME>/lib directory to <ESB_HOME>/repository/components/lib directory.ActiveMQ 5.8.0 and above
Earlier version of ActiveMQ
- Start the Axis2 server and deploy the
SimpleStockQuoteServiceif not already done.
- Start the Synapse configuration numbered 901:
wso2esb-samples.sh -sn 901
This example invokes the one-way
placeOrder operation on the
SimpleStockQuoteService using the Axis2
ServiceClient.fireAndForget() API at the client. To test this, use
ant -Dmode=placeorder... and you will notice the one way JMS message flowing through ESB into the sample Axis2 server instance over HTTP, and Axis2 acknowledging it with a HTTP 202 Accepted response.
The second example shows how ESB can be made to respond with a HTTP 202 Accepted response to a request received. The Proxy Service simply logs the message received and acknowledges it. On the ESB console you could see the logged message, and if TCPMon was used at the client, you would see the 202 Accepted response sent back to the client from ESB.