activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Jms Destination lifetime question
Date Tue, 04 Sep 2007 14:58:39 GMT
On 9/4/07, tmi <> wrote:
> Any JMS destinations that you create in your Java producer/consumer using
> javax.jms.Session.createQueue() or createTopic() will not outlive a restart
> of ActiveMQ.

They will if you use persistent messaging and you don't consume all
the messages on a queue/topic, then on restart you recreate your
consumer - or you specify them on startup the next time...

> Queues/topics that you want to outlive a broker restart need to be created
> directly in the broker, e.g. using some sort of JMX console. For those there
> are also APIs to delete these queues/topics again.

FWIW using a destination from Session.createQueue() /
Session.createTopic() to send/consume messages has the same effect as
creating the destination via JMX.

i.e. the broker only allocates resources for new destinations when
they are actually used by a producer / consumer.


View raw message