JMS - Request – Reply Model

8 June 2008

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.

ReqRespModel

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.

del.icio.us:JMS - Request – Reply Model  digg:JMS - Request – Reply Model  spurl:JMS - Request – Reply Model  wists:JMS - Request – Reply Model  simpy:JMS - Request – Reply Model  newsvine:JMS - Request – Reply Model  blinklist:JMS - Request – Reply Model  furl:JMS - Request – Reply Model  reddit:JMS - Request – Reply Model  fark:JMS - Request – Reply Model  blogmarks:JMS - Request – Reply Model  Y!:JMS - Request – Reply Model  smarking:JMS - Request – Reply Model  magnolia:JMS - Request – Reply Model  segnalo:JMS - Request – Reply Model  gifttagging:JMS - Request – Reply Model

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

One Response to “JMS - Request – Reply Model”

  1. Dan Says:

    Hi,

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

Leave a Reply