You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by James Strachan <ja...@gmail.com> on 2007/02/01 14:52:06 UTC

Re: Suggestion on how to get a unique id for a queue?

On 1/26/07, cafe <rm...@estudiantes.uci.cu> wrote:
>
> no, I can't because the client request to the server inside a MessageListener
> and when the method onMessage end the execution the temporary queue is
> destroyed.

Not quite. A temporary destination is only destroyed when the
connection which created it is closed (or the client explicitly
destroys it).

So create however many temporary destinations you require on start up,
then create a consumer & MessageListener and use them as often as you
require. No need to create your own UUIDs and stuff

Also this FAQ entry might help...
http://activemq.apache.org/how-should-i-implement-request-response-with-jms.html
-- 

James
-------
http://radio.weblogs.com/0112098/