This content has been marked as final.
Show 2 replies
-
1. Re: How to inject resources from HA-JNDI?
bdecoste Feb 28, 2006 5:35 PM (in response to metelka)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; -
2. Re: How to inject resources from HA-JNDI?
metelka Mar 2, 2006 4:44 AM (in response to metelka)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.