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: Context Resource name=*@tomcat.context.ece.read.ds.resource@* auth=*Container type=@tomcat.context.driver.type@ driverClassName=

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: snip/ I know a DS defined as above is visible across all the contexts defined in the container. What I want

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: GlobalNamingResources ... ... Resource name=*@tomcat.context.ece.read.ds.resource@*

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: GlobalNamingResources ... ... Resource

Re: Data Source Resource Declaration in Tomcat Context

2009-12-09 Thread Anurag Kapur
Perfect Thanks! The type I use would be: jhttp://tomcat.apache.org/tomcat-5.5-doc/config/globalresources.html avax.sql.DataSource (I was using untokenized reference in my example) Thanks for your help. Regards Anurag -- Anurag