I don't think there is a general J2EE solution because you can't change the ENC once the MDB is deployed - so it has to remain listening to the same queue and you can't change the env-entry values.
You could use setters/getters on your EJBs, but you would lose these changes whenever you get a newly created EJB, and the container decides when this happens, mainly. However, you could use system properties to hold destination queues for each component (and use the systemproperties service to change them) - or create your own service to hold this state - then you could look up the destination via JMX from your EJB, and this would change whenever you change the property. Or you could have them all listen to the same queue, but use message filters on the MDBs so that EJBs specify who gets their message when they send it - and then you could use a similar system to that above to change this dynamically. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874836#3874836 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874836 ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user