Re: Data Source Resource Declaration in Tomcat Context

2009-12-09 Thread Anurag Kapur
Perfect Thanks! The type I use would be: j avax.sql.DataSource (I was using untokenized reference in my example) Thanks for your help. Regards Anurag -- Anurag K

Re: Data Source Resource Declaration in Tomcat Context

2009-12-09 Thread Mark Thomas
Anurag Kapur wrote: > Thanks Mark. > > Can you confirm that I can have one data source "shared" across all contexts > with the following configurations: > > In CATALINA_BASE/conf/server.xml, I define a GlobalNamingResource as > follows: > > > ... > ... > Resource name=*"@tomcat.context.ece.read

Re: Data Source Resource Declaration in Tomcat Context

2009-12-09 Thread Anurag Kapur
Thanks Mark. Can you confirm that I can have one data source "shared" across all contexts with the following configurations: In CATALINA_BASE/conf/server.xml, I define a GlobalNamingResource as follows: ... ... Resource name=*"@tomcat.context.ece.read.ds.resource@"* auth=*"Container" type="@tom

Re: Data Source Resource Declaration in Tomcat Context

2009-12-09 Thread Mark Thomas
Anurag Kapur wrote: > Tomcat version: 5.5.27 > Java version: 1.5.0_14-b03 > > I have a datasource configured in global context (via present in > [tomcat_home]/conf/context.xml) as follows: > I know a DS defined as above is visible across all the contexts defined in > the container. What I want

Data Source Resource Declaration in Tomcat Context

2009-12-09 Thread Anurag Kapur
Tomcat version: 5.5.27 Java version: 1.5.0_14-b03 I have a datasource configured in global context (via present in [tomcat_home]/conf/context.xml) as follows: Resource name=*"@tomcat.context.ece.read.ds.resource@"* auth=*"Container" type="@tomcat.context.driver.type@" driverClassName= "@tomcat.