View RSS Feed

My Java Tips

JMS - Request – Reply Model

Rate this Entry
by , 11-05-2011 at 06:51 PM (1249 Views)
This 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.

Name:  jms3.png
Views: 204
Size:  15.1 KB

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.

Submit "JMS - Request – Reply Model" to Facebook Submit "JMS - Request – Reply Model" to Digg Submit "JMS - Request – Reply Model" to del.icio.us Submit "JMS - Request – Reply Model" to StumbleUpon Submit "JMS - Request – Reply Model" to Google

Tags: None Add / Edit Tags
Categories
JMS

Comments