activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: How to properly close a queue?
Date Thu, 02 Oct 2008 16:02:50 GMT
2008/10/2 kneumei <>:
> Perhaps I am misunderstanding how JMS works, or maybe I didn't explain myself
> very well.  How I am viewing JMS's relationship to my code right now is like
> this:  My business objects (with their associated queues) are on the server.
> They produce messages.  Consumers (on a client machine) may come and go, but
> the queue should not be destroyed until the business object is (that way
> future clients might connect to the same queue).  If my understanding of
> temporary queues is correct, the queue will be destroyed whenever a client
> disconnects from the queue.

The queue is owned by the connection which creates it.  So your
business object creates the queue; when you close it, you close the
connection and the temporary queue goes away.


Open Source Integration

View raw message