Re: [OpenEJB-user] Context problem when connecting OpenEJB and Tomcat
Brought to you by:
dblevins,
monson-haefel
From: Jacek L. <jac...@hp...> - 2003-02-27 09:48:42
|
Hi Clemens, I couldn't do it better. Thanks for your time working on the patch. Although the solution seems to be very simple, the way to came up with it hasn't been so. Good job ! There's however one point I want to rise up in order to clear up things. Clemens Kadura wrote: > Bean output: > ------------ > ctx = new InitialContext() > env = (Context) ctx.lookup("java:comp/env") > env.getClass() [class org.openejb.core.ivm.naming.IvmContext] > env_foo = (Context) ctx.lookup("java:comp/env/foo") > env_foo.getClass() [class org.openejb.core.ivm.naming.IvmContext] > env_bar = (Context) ctx.lookup("java:comp/env/bar") > env_bar.getClass() [class org.apache.naming.NamingContext] > ctx.lookup("java:comp/env/foo/envvar_o") : [ENVVAR_O] > ctx.lookup("java:comp/env/foo/envvar_t") : [ENVVAR_TF] > ctx.lookup("java:comp/env/bar/envvar_t") : [ENVVAR_TB] > env.lookup("foo/envvar_o") : [ENVVAR_O] > env.lookup("foo/envvar_t") : [ not found] > env.lookup("bar/envvar_t") : [ not found] > env_foo.lookup("envvar_o") : [ENVVAR_O] > env_foo.lookup("envvar_t") : [ not found] > env_bar.lookup("envvar_t") : [ENVVAR_TB] Shouldn't OpenEJB pass the following JNDI provider in the federation the full name of an entry, so that is also found as the first calls in the Bean output did ? I think it should. What others think about it ? -Jacek |