Hello Andy and fbiaggi,

thank you very much, you brought me on the right track.

I have looked in the JMX-Console:

Ejb Module: FiboEJB.jar
java:comp namespace of the Fibo bean:
  +- env (class: org.jnp.interfaces.NamingContext)

Global JNDI Namespace
+- ejb (class: org.jnp.interfaces.NamingContext)
  |   +- Fibo (proxy: $Proxy50 implements interface
           tutorial.interfaces.FiboHome,interface javax.ejb.Handle)

The Fibo-Bean resides in the Global JNDI namespace, and not,
like expected, in the java:comp namespace of the Fibo-Bean.

I have changed my lookup like followed, and it works:

Object ref = context.lookup("ejb/Fibo");

But two questions remain:

Why do the Fibo-Bean resides not in the java:comp namespace
of the Fibo-Bean? I think, the reason has to do with the xml-files, but I am 
not sure.

Why does the ComputeServlet-Class from the JBoss-Tutorial works with the 
following lookup:

Object ref = context.lookup("java:/comp/env/ejb/Fibo");

I have thought, if the Servlet works with lookup("java:/comp/env/ejb/Fibo"), 
the Swing-Client should work with this lookup, too. But my assumption was 
wrong. I don't understand, how the servlet can find the name 
java:/comp/env/ejb/Fibo, although nothing is bound with java:comp. That's 
strange, isn't it?

Regards
Oliver


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

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


-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to