I apologize for the confusion.  I failed to recognize that you were doing this 
lookup from a Swing client.

java:comp/env is a special naming context, the Environment Naming Context (ENC) 
for a J2EE component.  It's only valid within the scope of a J2EE component, 
such as a servlet or EJB, which is why it works in the tutorial's servlet, and 
why you won't see it in the JMX console.

The EJB reference gets mapped to the servlet's ENC (java:comp/env/ejb/Fibo) via 
an ejb-ref element in web.xml and an ejb-ref-jnid element in jboss-web.xml.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883224#3883224

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883224


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to