1 of 1 people found this helpful
If you are using WildFly, the best way to create dynamically the queues is to use its management API either through HTTP or with its native Java version
Thanks. I will look these links.
Its the second time i need to work with jms and again the requirement is create queues dynamically :-)
Maybe in the future this can be an hornetq feature?
Please note that there are already some way to create queues dynamically. The issue is how much dynamic you want them to be
For simple request/reply use cases, JMS allows to create temporary queues. You can not bind them to JNDI but they can be passed to messages using the JMSReplyTo header.
With JMS 2.0, it is also possible to have queues (and topics) defined with the deployed archives. All the components of this archive can then use them through JNDI and they are available for the lifetime of the deployed archive.