activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Fernandez <>
Subject Re: producer send message to consumer and get a response
Date Mon, 04 Aug 2008 18:21:56 GMT

Yes, this is possible with JMS and is referred to as the request/reply
pattern. Check out the following, which also has some sample code.

You may also want to look at the QueueRequestor and TopicRequestor JMS
helper classes. 

Joe - get a free ActiveMQ user guide

elihusmails wrote:
> From what I understand about JMS, I think the following scenario is
> possible, just not sure how to configure it.  I am trying to figure out if
> I
> can send set up ActiveMQ to perform the following:
> 1. Producer sends message to JMS Topic/Queue
> 2. Consumer gets the message from the Topic/Queue
> 3. Consumer acts on the message and generates a response
> 4. Consumer sends response back to JMS Topic/Queue (can be same or
> difference Topic/Queue)
> 5. Producer receives response and acts upon the response.
> This would have to be as close to synchronous as possible, since I don't
> want any more latency than necessary.  Also, the producer might send
> message
> #2 before it gets the response for message#1.
> Basically I am looking to replace some web services with JMS.
> Thanks....

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message