Reputation: 7837
I need to dynamically create JMS queues during runtime. Is it possible to do this with the Spring JMS support (JmsTemplate?)? and how? code examples or references would be greatly appreciated.
Update: It turns out that it is not possible to create physical destinations through the JMS API, so I assume that is not possible in JmsTemplate as well. However, I found that I can use the temporary queues, but still don't know how.
Upvotes: 1
Views: 670
Reputation: 174544
Some brokers (such as ActiveMQ) can create queues on the fly when they are used.
Others require pre-provisioning.
Temporary queues may not be what you want - they are "owned" by the connection and go away when the connection is closed.
Upvotes: 2