JNDI lookup of BeanManager in weblogic 12c fails
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.
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.
0