--- Rickard Öberg <[EMAIL PROTECTED]> skrev: > Hi!
>
> Shahar Solomianik wrote:
> > Do I have to use the following code :
> >
> > Hashtable jndiProperties = new Hashtable();
> >
> >
> jndiProperties.put("java.naming.factory.initial","org.jnp.interfaces.NamingC
> > ontextFactory");
> > jndiProperties.put("java.naming.provider.url","localhost");
> > jndiProperties.put("java.naming.factory.url.pkgs","org.jboss.naming");
> > javax.naming.Context jndiContext = new InitialContext(jndiProperties);
> >
> > when using integrated jboss+tomcat ?
> >
> > or is
> >
> > javax.naming.Context jndiContext = new InitialContext()
> >
> > enough ?
>
> The last one should indeed be enough.
Should be, but is not?
If I start Tomcat (standalone) with the properties given behind -D on the
command line,
the latter method works, but not if they are given in a jndi.properties files
under the WEB-INF/classes of my war-file.
But if I use ResourceBundle.getBundle("jndi") in my JSP, Tomcat actually
finds the jndi.properties file.
erik
_______________________________________________________
Do You Yahoo!?
Del dine bilder med andre på http://no.photos.yahoo.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]