activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Defining Destinations: applicationContext or activemq XML?
Date Sat, 05 Aug 2006 06:19:31 GMT
On 8/4/06, jcarreira <> 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...

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



View raw message