use your imagination on how you can store the properties in an xml file, then read them before looking up the namespace, see my second option
Filip -----Original Message----- From: Walter Moore [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 6:31 AM To: Tomcat Users List Subject: Re: javax.naming.NameNotFoundException: Name blah.blahHome is not bound in this context thanks. The spelling was the problem. Is there a way to specify this in an xml file, so the application does not need to this, but the system administrators can modify it when/if they move the app server? thanks, Walter Moore Filip Hanik wrote: >>I have added these parameters to tomcat (in catalina.bat): >>-Djava.naming.provider.url=t3://lac-appserv.corp.fedex.com:7001 >>-Djava.naming.factory.intial=weblogic.jndi.WLInitialContextFactory >> >> > >(check your spelling of ^^^^^ initial) > >instead of adding these to catalina.bat, you may want to do this > >Hashtable props = new Hashtable(); >props.put("java.naming.provider.url","t3://lac-appserv.corp.fedex.c om:7001") >; >props.put("java.naming.factory.initial","weblogic.jndi.WLInitialCon textFacto >ry"); >Context ctx = new InitialContext(props); > >Filip > --------------------------------------------------------------------- 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]
