-
1. Re: Wildfly Alpha3, Dynamic queue creation and jndi lookup
jmesnil Jul 29, 2013 8:31 AM (in response to fuinhaazul)1 of 1 people found this helpfulIf you are using WildFly, the best way to create dynamically the queues is to use its management API either through HTTP[1] or with its native Java version[2]
[1] https://docs.jboss.org/author/display/WFLY8/The+HTTP+management+API
[2] https://docs.jboss.org/author/display/WFLY8/The+native+management+API
-
2. Re: Wildfly Alpha3, Dynamic queue creation and jndi lookup
fuinhaazul Jul 30, 2013 10:06 AM (in response to jmesnil)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?
Thanks again
-
3. Re: Wildfly Alpha3, Dynamic queue creation and jndi lookup
jmesnil Jul 30, 2013 10:30 AM (in response to fuinhaazul)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.