activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nixen09 <nixe...@gmail.com>
Subject Creating consumer and temporary queue in same connection in Activemq?
Date Wed, 06 Nov 2013 07:06:22 GMT
Hi
i am new to activemq. when i create a consumer for temporary queue the
consumer give a point to temporary queue that was created in the session.it
will be a synchronize process.after that it will produce the message to
broker(activemq).the code follows

// client side
 Destination tempDest = session.createTemporaryQueue();
 MessageConsumer responseConsumer = session.createConsumer(tempDest);
...

// send a request..
message.setJMSReplyTo(tempDest)
message.setJMSCorrelationID(myCorrelationID);

producer.send(message);
i want to know whether i can create a consumer for the Temporary Queue in
different connection or session ?if i can then how to consume the Temporary
Queue with its name in different session or connection ?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Creating-consumer-and-temporary-queue-in-same-connection-in-Activemq-tp4673934.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message