[jboss-user] [Messaging, JMS & JBossMQ] - JMS: choosing destination and selector dynamically at runtim
dpocock
do-not-reply at jboss.com
Sat Dec 8 08:50:17 EST 2007
Message driven beans are a project requirement because of their asynchronous behaviour.
However, the destination name and selector are not known at compile time, so they can't be specified in the XML descriptors or using EJB3's annotations.
If the subscription is created dynamically (by instantiating a listener object within a method of a stateless bean, for instance), then asynchronous messaging can't be used, because such a listener object can only operate in the thread where it is created.
What is the correct way to do this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111382#4111382
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111382
More information about the jboss-user
mailing list