Re: How to read JNDI resources?

2005-04-07 Thread Andrew Watters
-5.5-doc/appdev/deployment.html Have fun reading Vaneet -Original Message- From: Andrew Watters [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 6:14 PM To: Tomcat Users List Subject: Re: How to read JNDI resources? Thank you, I appreciate your reply. I didn't have a context entry so

Re: How to read JNDI resources?

2005-04-07 Thread Andrew Watters
Vaneet -Original Message- From: Andrew Watters [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 6:14 PM To: Tomcat Users List Subject: Re: How to read JNDI resources? Thank you, I appreciate your reply. I didn't have a context entry so I added a minimal one (copied from

How to read JNDI resources?

2005-04-06 Thread Andrew Watters
Using tomcat 4.3.1 I have included the following in server.xml GlobalNamingResources Environment name=config_file type=java.lang.String value=test/ /GlobalNamingResources In a servlet loaded on startup I try to read in the property InitialContext ic = new InitialContext(); Context ctx =

Re: How to read JNDI resources?

2005-04-06 Thread Mark Thomas
You need to include a ResourceLink element in your context. Mark Andrew Watters wrote: Using tomcat 4.3.1 I have included the following in server.xml GlobalNamingResources Environment name=config_file type=java.lang.String value=test/ /GlobalNamingResources In a servlet loaded on startup I try

Re: How to read JNDI resources?

2005-04-06 Thread Andrew Watters
Thank you, I appreciate your reply. I didn't have a context entry so I added a minimal one (copied from the /examples one) before proceeding further as shown below. Context path=/xxx docBase=xxx debug=0 reloadable=true crossContext=true / Unfortunately tomcat doesn't start now. I get a

RE: How to read JNDI resources?

2005-04-06 Thread Vaneet Sharma
U need to read this page http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/deployment.html Have fun reading Vaneet -Original Message- From: Andrew Watters [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 6:14 PM To: Tomcat Users List Subject: Re: How to read JNDI