On 9/4/07, tmi <mielket@web.de> 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...
http://activemq.apache.org/configure-startup-destinations.html
> 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.
--
James
-------
http://macstrac.blogspot.com/
|