Oracle Weblogic Server (MOSC)

MOSC Banner

JNDI lookup of BeanManager in weblogic 12c fails

edited Aug 16, 2012 1:09AM in Oracle Weblogic Server (MOSC) 9 commentsAnswered
Hello
I'm using Weblogic 12.1.1(patched one) and trying to do a JNDI lookup of the BeanManager
Following code fails.

try
            {
              bm = (BeanManager) new InitialContext().lookup("java:comp/BeanManager");
            }
         catch (NamingException e) {
             log.error("JNDI lookup failed "+e);
         }
in
JNDI lookup failed javax.naming.NameNotFoundException: While trying to look up comp/BeanManager in /app/ejb/ejbs.jar/#ABeanEJB.; remaining name 'comp/BeanManager'

Injecting it however works fine. If I look in the JNDI tree from the console it's not displayed.


Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center