You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Scott Walter <tx...@yahoo.com> on 2001/10/30 22:11:08 UTC
JNDI Access
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.factory.initial","org.apache.naming.java.javaURLContextFactory"
);
props.put( "java.naming.provider.url","localhost:1099"
);
InitialContext ic = new InitialContext(props);
thanks.
=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scott
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>