tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: tomcat and comp jndi context
Date Wed, 20 Jul 2011 10:20:19 GMT
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


Mime
View raw message