tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Emerson <aucky...@yahoo.com>
Subject jndi.properties tomcat 5.0
Date Thu, 22 Jul 2004 20:11:00 GMT
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message