On 8/4/06, jcarreira <[EMAIL PROTECTED]> wrote:
Should I define my destinations in my applicationContext.xml or my
activemq.xml?

The classes ActiveMQQueue and ActiveMQTopic are simple POJOs (kinda
like URL and URI classes) that don't do very much other than represent
the name of a destination. So you can define them wherever you like.


I need to use my Queues in the rest of my Spring
configuration,

Then spring.xml sounds fine.

but ActiveMQ doesn't seem to see the Queues (via JMX) unless
I define them in the activemq.xml.

Ah - some background here...

http://incubator.apache.org/activemq/how-do-i-create-new-destinations.html

If you create destination objects on the 'client side' then they don't
appear in JMX until they are actually used on the broker (folks send
messages to them etc). However if you tell the broker to start the
destinations on startup they appear instantly in JMX
http://incubator.apache.org/activemq/configure-startup-destinations.html

--

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

Reply via email to