Hi,
You're not missing anything.  Since I'm short on time for explanations
today, I'll just say that jndi.properties is basically nice for
examples/tutorials and simple applications, but the proper paradigm for
an application server is the explicit context properties population that
you're doing.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Phil Emerson [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 22, 2004 4:11 PM
>To: [EMAIL PROTECTED]
>Subject: jndi.properties tomcat 5.0
>
>Hi Folks,
>
>   I need to integrate my jboss server and tomcat 5.0
>web server(standalone) using JNDI.
>
>   I need explicitly mention JNDI properties in the
>web server code for it to work.
>
>   p.put(Context.INITIAL_CONTEXT_FACTORY,
>"org.jnp.interfaces.NamingContextFactory");
>   p.put(Context.URL_PKG_PREFIXES,
>"jboss.naming:org.jnp.interfaces");
>   p.put(Context.PROVIDER_URL, "192.168.1.84:1099");
>
>   Defining the parameters in the jndi.properties does
>not work.
>
>    I looked up the old posts and tried this solution
>too..
>
>    props.load(
>servlet.getServletContext().getResourceAsStream(
>
>"/WEB-INF/classes/jndi.properties" ) );
>
>
>  but no success.
>
>  Am i missing something here.
>
>TIA
>
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Vote for the stars of Yahoo!'s next ad campaign!
>http://advision.webevents.yahoo.com/yahoo/votelifeengine/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to