RE: Defining data-sources in tomcat

2007-04-27 Thread Srinivas V.
Thanks for all the responses on this. The basic doubt I had was whether the JNDI lookup would create a new data-source on each lookup or just return the previously created one. A number of you had said that the latter was true. The reason I wasn't sure about that was because I'm creating C3P0 Combo

Defining data-sources in tomcat

2007-04-27 Thread Srinivas V.
Hello all I have a question about defining data-sources in tomcat. I have a webapp in which my servlets need to talk to a DB. This is my current setup: 1) I define data-sources (c3p0 connection pools) using the Resource tag in my META-INF/context.xml. 2) The web.xml has references these data-sour

RE: Class-loading problem in tomcat when using commons digester

2007-04-20 Thread Srinivas V.
Ok, I figured out how to solve this. I basically told digester to use the contextClassLoader, see Thread.getContextClassLoader. Now everything's happy. -Original Message- From: Srinivas V. [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 4:03 PM To: users@tomcat.apache.org Su

Class-loading problem in tomcat when using commons digester

2007-04-20 Thread Srinivas V.
One of the servlets in my webapp parses and constructs objects based on XML configuration using the Commons-digester. This happens in the servlet's init. The code to parse the XML and construct objects works fine when I invoke it from a standalone app. However when I invoke the same code from withi

Questions about ROOT context

2007-04-09 Thread Srinivas V.
Hello tomcat experts I'm working on a new tomcat based website. I will be manager the server entirely and so will be the only person deploying html/jsp/servlets to it. I've been reading a few books and they suggest using custom webapps instead of the ROOT one. But I haven't seen any hard reasons