|Summary:||Request for a "shared" datasource configuration as in DBCP|
|Product:||Tomcat Modules||Reporter:||Jason <jkonicki>|
|Component:||jdbc-pool||Assignee:||Tomcat Developers Mailing List <dev>|
Description Jason 2010-07-02 15:07:50 UTC
The ability to configure the datasource at the server level and have it shared amongst all applications on that server with each application supplying their own credentials for the datasource. This type of configuration is supported by DBCP and is called a "shared" datasource configuration.
Comment 1 Mark Thomas 2010-07-02 16:55:59 UTC
Comment 2 Mark Thomas 2010-07-04 16:43:55 UTC
Marking as an enhancement. Since the original developer of this module is not available at the moment, there is unlikely to be any progress on this for several months. A patch would certainly help progress things. I would also note that keeping jdbc-pool simple and not to fully implement every feature in DBCP was a deliberate design decision. Any patch should bear this in mind and should ideally provide this feature as an optional extra that does not add any overhead for users that do not wish to use it.
Comment 3 Filip Hanik 2011-01-04 17:09:01 UTC
Jason, this ability does exist with the fix of https://issues.apache.org/bugzilla/show_bug.cgi?id=50025 I'm working on a simple enhancement to Tomcat 7 that will allow this for any configured data source.
Comment 4 Filip Hanik 2011-01-06 13:24:43 UTC
You can now do this with any configured data source as long as the data source itself supports getConnection(String,String) This was committed in http://svn.apache.org/viewvc?view=revision&revision=1055989