|
In ActiveMQ you do not have to create destinations up front before you can use them. Just create a destination dynamically either by
In addition, if you are using JNDI to lookup connection factory and destinations, you can specify which destinations you wish to create by default using the properties file. See the JNDI Support for more details. The ActiveMQ broker auto-creates the physical resources associated with a destination on demand (i.e. when messages are sent to a new destination on a broker). This means that a client can create a new Queue or Topic as above and the broker will automatically create the physical destinations for you. This avoids spending large amounts of time creating every individual destination you wish to use and possibly then exposing it in some JNDI provider. Creating destinations on startupIts completely optional but as of 4.1 you can Configure Startup Destinations to specify which destinations are automatically created when the broker starts. Limiting creation of destinationsIf you need to restrict access or creation of destinations then please use the Security option to disable destinations being auto-created for certain users.
You can browse the currently available queues and topics using JMX. You can also use the JMX MBeans to create the destinations you require. |