openejb3 installs jndi context rooted at the wrong place
--------------------------------------------------------
Key: GERONIMO-2831
URL: https://issues.apache.org/jira/browse/GERONIMO-2831
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Affects Versions: 2.0-M2
Reporter: David Jencks
Assigned To: David Jencks
Fix For: 2.0-beta1
GeronimoThreadContextListener is installing the jndi context from openejb into
the geronimo root context. However, the openejb context has entries starting
with java:comp whereas the root context expects the java:comp to be stripped
off. As a result nothing can be looked up in the java:comp namespace.
// Get the jndi context
Context jndiContext = ejbDeployment.getComponentContext();
try {
jndiContext = (Context) jndiContext.lookup("java:comp");
} catch (NamingException e) {
throw new IllegalStateException("jndiContext did not contain
expected java:comp subcontext", e);
}
fixes the problem, but this lookup should be done only once wen the
ejbDeployment is started.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.