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 OpenEJB* question rather than a Tomcat one?

p


* EJB!  Really!?

> - Romain
> 
> 2011/7/20 Pid <p...@pidster.com>
> 
>> 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
>> after_start
>>> lifecycle event.
>>>
>>> any link or doc is appreciated ;)
>>>
>>> - Romain
>>>
>>
>> How about the Tomcat docs?
>>
>>
>> http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
>>
>>  Context initContext = new InitialContext();
>>  Context envContext  = (Context)initContext.lookup("java:/comp/env");
>>
>>
>> p
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to