RE: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Shapira, Yoav
Hi, Where in server.xml is your Resource declaration? Is there a matching resource-ref in your web.xml? (It's required). You also probably want a factory parameter, as mentioned in the JNDI DataSources how-to. Yoav Shapira Millennium Research Informatics -Original Message- From:

Re: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Jeffrey Barnett
In both servers the Resource declarations are in the DefaultContext block. All DataSources are shared by all webapps. I do not have a resource-ref declaration in either web.xml ... I'll go look that up and remedy. What is the purpose of the factory parameter, and what is an appropriate

RE: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Shapira, Yoav
Hi, In both servers the Resource declarations are in the DefaultContext block. All DataSources are shared by all webapps. You realize that by placing a Resource in DefaultContext you ensure that a separate copy is created for each Context, right? That means if you configure for 10 max

Re: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Jeffrey Barnett
I'm sure your explanation as well as a (re) reading of the How To will allow me to correct the problem. Thanks very much! I'd like a little more explanation however about your advice on using DefaultContext. In addition to the advantage of having a single place to add, remove, and change

RE: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Shapira, Yoav
Hi, passwords), I THOUGHT I was sharing a single copy of the resources. I understand now that a separate copy is created for every application. But what I don't understand is how putting every resource in every actual context is better. If I have 5 applications, each of whose actual context