JMS - Request – Reply Model
8 June 2008This model is used when real time response is required. JMS provides two API to implement Request – Reply model which are QueueRequester and TopicRequester.
QueueRequestor
You may use this is you wish to use QUEUE. It creates a TemporaryQueue for the responses and provides a request() method that sends the request message and waits for its reply.
TopicRequestor
This API uses TOPIC to get responses. It creates a TemporaryTopic for the responses and provides a request() method that sends the request message and waits for its reply.
A Requestor sends request and waits for the response using request method of TopicRequestor or QueueRequestor. On other side receiver receives the request ,does processing and send back the response to the originator using Message’s getJMSReplyTo method.
Related Posts:
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: JMS - Request – Reply Model

Hi,
Is it possible to do a request reply using transactions (UserTransaction)?