Re: tomcat and comp jndi context

2011-07-20 Thread Romain Manni-Bucau
The question is "how to get the comp context in the after start event in tomcat"...i did standContext.getNamingContextListener().getNamingContext().lookup("comp") and it seems to work. yes EJB...but it is simple (EJB 2, not 2) and standard... so it is not so bad :p - Romain 2011/7/20 Pid > On

Re: tomcat and comp jndi context

2011-07-20 Thread Pid
On 20/07/2011 13:09, Romain Manni-Bucau wrote: > I'm in OpenEJB modifying a lifecycle listener. > > The current code is: > > ContextBindings.getClassLoader().lookup("comp"); > > but it fails, i wonder if i can replace it by: > > standardContext.getNamingContextListener(); Perhaps this is an Op

Re: tomcat and comp jndi context

2011-07-20 Thread Romain Manni-Bucau
I'm in OpenEJB modifying a lifecycle listener. The current code is: ContextBindings.getClassLoader().lookup("comp"); but it fails, i wonder if i can replace it by: standardContext.getNamingContextListener(); - Romain 2011/7/20 Pid > On 19/07/2011 23:34, Romain Manni-Bucau wrote: > > Hi, > >

Re: tomcat and comp jndi context

2011-07-20 Thread Pid
On 19/07/2011 23:34, Romain Manni-Bucau wrote: > Hi, > > where can i get more information on the way tomcat manage its jndi tree? > > Pratically i need the get java:comp context but i don't know when/where to > look up it. > > I didn't find it in ContextBindings.getClassLoader() in start or afte

tomcat and comp jndi context

2011-07-19 Thread Romain Manni-Bucau
Hi, where can i get more information on the way tomcat manage its jndi tree? Pratically i need the get java:comp context but i don't know when/where to look up it. I didn't find it in ContextBindings.getClassLoader() in start or after_start lifecycle event. any link or doc is appreciated ;) -