geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodger <>
Subject A question about jndi
Date Wed, 26 Aug 2009 10:23:43 GMT
I have a remote interface *my.test.Echo* and a ejb *my.test.EchoBean*.
I don't do any configuration for the jndi in deployment descriptor and
deployment plan.

Then using
private Echo echo;
*can find the ejb and run successfully.*
But why using
*Context ctx = new InitialContext();
Echo echo = (Echo)ctx.lookup("java:comp/env/my/test/Echo"); *
there is:

*javax.naming.NotContextException: my/test/Echo

*Who can help me?*

Geronimo version 2.2
Best Regards,

View raw message