RE: Dynamic Datasource Configuration - JNDI read only context

2006-01-17 Thread Rob Gregory
D] Sent: 17 January 2006 14:09 To: Tomcat Users List Subject: Re: Dynamic Datasource Configuration - JNDI read only context Your results are correct. The JNDI provided by tomcat is read-only. You'll need to put your DataSource object into your own JNDI context or store the DataSour

Re: Dynamic Datasource Configuration - JNDI read only context

2006-01-17 Thread David Smith
Your results are correct. The JNDI provided by tomcat is read-only. You'll need to put your DataSource object into your own JNDI context or store the DataSource in your ServletContext. Personally I like the idea of putting the javax.sql.DataSource object in the ServletContext and using it fr

Dynamic Datasource Configuration - JNDI read only context

2006-01-16 Thread Rob Gregory
Hi Guys and thanks in advance for any pointers. I am running Tomcat 5.5.9 and would like to remove the need to specify database configuration details within the context.xml file e.g. I need to provide (apache commons db) datasources 'on the fly' and after trying every thing I can thi