tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Walter <>
Subject JNDI Access
Date Tue, 30 Oct 2001 21:11:08 GMT
Is there a way to access the JNDI directory outside of
a Tomcat (like a command-line Java tool).  

I need to get access to a resource reference that is
defined in Tomcat outside of Tomcat.  Using
application servers I can pass a Properties object to
the InitialContext constructor.

Can this be done with Tomcat?  If so what paramters
would I need?

I tried this:

Hashtable props = new Hashtable();
props.put( "java.naming.provider.url","localhost:1099"

InitialContext ic = new InitialContext(props);



Do You Yahoo!?
Make a great connection at Yahoo! Personals.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message