[JBoss-user] [EJB 3.0] - Re: How to inject resources from HA-JNDI?
The problem is that if I use @Resource(mappedName="queue/testQueue") javax.jms.Queue testQueue; ejb container uses default InitialContext (running on port 1099) to lookup the queue and not ha-jndi context (running on port 1100). Because the queue is registered in global namespace, it is not found and the SLSB cannot be deployed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927388#3927388 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927388 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: How to inject resources from HA-JNDI?
By "registered in HA-Jndi", I assume you mean that the Queue is in the Global Namespace. You can inject a Queue with the following - note that the mappedName is the Jndi binding in the Global Namespace. @Resource(mappedName="queue/testQueue") javax.jms.Queue testQueue; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926938#3926938 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926938 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user