Objective: Demonstrate sending request response scenario with JMS transport
- You need to set up ESB and axis2 server to use the JMS transport. See Sample 251 for more details.
This sample is similar to Sample 251. Only difference is we are expecting a response from the server. JMS transport uses transport.jms.ContentTypeProperty to determine the content type of the response message. If this property is not set JMS transport treats the incoming message as plain text.
In the out path we remove the message context property TRANSPORT_HEADERS. If these property is not removed JMS headers will be passed to the client.
Start ESB using sample 264.
Start Axis2 server with SimpleStockService deployed
Invoke the stockquote client using the following command.
The sample Axis2 server console will print a message indicating that it has received the request:
In the client side it should print a message indicating it has received the price.