[JBoss-user] [EJB 3.0] - Re: How to inject resources from HA-JNDI?

2006-03-02 Thread 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.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3927388#3927388

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=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=lnkkid=110944bid=241720dat=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?

2006-02-28 Thread bdecoste
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=bbop=viewtopicp=3926938#3926938

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=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=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user