Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

EJB Lookup

843829Sep 8 2003 — edited Sep 12 2003
Hello everyone

I am having trouble looking up ejb on the application server. I have deployed individual ejb modules in the application server and I am trying to directly access them with an application client (Swing GUI), but I am not sure why my lookup is not working correctly, because I am not getting anything back. The exception says the class is unkown, so to understand the problem better can anyone tell me what this means where the path is referring to:

InitialContext ctx = new InitialContext()
Object obj = (Object)initialContext.lookup("java:comp/env/);

so where is "java:comp/env" referring to? is this the path where the ejb is located? how can I interpret this?

Thank,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2003
Added on Sep 8 2003
3 comments
175 views