You can create a queue programmatically by invoking the "createQueue" JMX
method on the ServerPeer MBean. Upon the method completion, your new queue will
be accessible in JNDI and also through the JMX interface, similarly to any
regular ("deployed") queue.
The queue is handled like any other regular queue, so if the server crashes,
the queue's state can be recovered from the database, but your program will
have to somehow remember that it created the queue dynamically, and re-create
it programmatically after recovery. The messaging server doesn't handle this
for you. It is, however, something relatively simply to implement at
application level.
To see an example of how this works, take a look at
DestinationManagerTest.testCreateQueueProgramatically()
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973130#3973130
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973130
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user