This discussion is archived
1 Reply Latest reply: Sep 13, 2012 2:09 AM by user777 RSS

Unable to lookup in InitialContext a Local EJB in Weblogic 10.3.5 (EJB 3.0)

940787 Newbie
Currently Being Moderated
Hello, for days we look for a response to this question:

We have a local EJB 3.0 defined as usual with annotations. We know EJB 3.0 doesn't define a standard jndi name to lookup in the InitialContext, so, what is the name in Weblogic 10.3?

E.g. if we have a EJB module with the following classes (package "test"):

public class Hello implements HelloLocal { ... }

public interface HelloLocal { ... }

and a standard (pojo) class (not a EJB):

public class Foo {
InitialContext ctx = null;
try {
ctx = new InitialContext();
Object o = ctx.lookup("XXXXXX");

} ....

We try a lot of names for XXXXXX unsuccessfully. If we iterate over the JNDI context we found that exists a binding in "java:module" with then name "test.HelloLocal" but when do a lookup:


an exception is thrown. We know that "java:module" is part of the EJB 3.1 specification but we try a lot of things ...

Thanks in advance.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points