RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
...@christopherschultz.net] Sent: 17 November 2010 16:44 To: Tomcat Users List Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob, On 11/17/2010 7:07 AM, Rob Gregory wrote: Is it possible to just store my existing

Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Pid
List Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools Rob, On 11/17/2010 7:07 AM, Rob Gregory wrote: Is it possible to just store my existing collection of datasources in some global context? I.e. initCtx = new InitialContext(); Context envCtx = (Context

Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Mark Thomas
On 18/11/2010 09:34, Rob Gregory wrote: Thanks Chris, After messing around with JNDI yesterday I came to the same conclusion that Tomcat is doing some isolation Random thoughts that may or may not help. If you look in the DataSourceRealm you will see some code that lets a web-app use a

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
Thanks Pid, That’s two suggestions for me to try. Many thanks for your assistance. Rob -Original Message- From: Pid [mailto:p...@pidster.com] Sent: 18 November 2010 10:26 To: Tomcat Users List Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools On 18/11

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
: 18 November 2010 10:30 To: Tomcat Users List Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools On 18/11/2010 09:34, Rob Gregory wrote: Thanks Chris, After messing around with JNDI yesterday I came to the same conclusion that Tomcat is doing some isolation

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
(dataSourceName, datasource); Thanks again for the push in the right direction. Rob -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: 18 November 2010 10:30 To: Tomcat Users List Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools On 18/11/2010 09:34

Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Mark Thomas
To: Tomcat Users List Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools On 18/11/2010 09:34, Rob Gregory wrote: Thanks Chris, After messing around with JNDI yesterday I came to the same conclusion that Tomcat is doing some isolation Random thoughts that may or may

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
To: Tomcat Users List Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools On 18/11/2010 16:54, Rob Gregory wrote: Spot on Mark. I have been googling and playing around for over a day on this, Following your suggestion it boils down to a couple of lines of code

Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Mark Thomas
. Mark Thanks Again. Rob -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: 18 November 2010 16:59 To: Tomcat Users List Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools On 18/11/2010 16:54, Rob Gregory wrote: Spot on Mark. I have been

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-17 Thread Rob Gregory
Is it possible to just store my existing collection of datasources in some global context? I.e. initCtx = new InitialContext(); Context envCtx = (Context)initCtx.lookup(java:/comp/env); envCtx.bind(datasource_live, objLiveDatasource); envCtx.bind(datasource_test, objTestDatasource); or

Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob, On 11/17/2010 7:07 AM, Rob Gregory wrote: Is it possible to just store my existing collection of datasources in some global context? I.e. initCtx = new InitialContext(); Context envCtx = (Context)initCtx.lookup(java:/comp/env);