Using request-response messaging with JMS
This recipe shows you how to implement the request/reply design patterns over JMS. For this we need two queues, the RequestQueue where the request is sent to and consumed by the replier, and the ResponseQueue where the answer/reply is sent to by the replier and then consumed by the initial requester.
This is shown in the following diagram where on the left the requestor is implemented by a business service on OSB, and on the right the replier is implemented as a proxy service on OSB.
In a real case, the OSB normally only plays one role of either the requestor or the replier, and hence it is only on one side. ...