Bug 49543 - Request for a "shared" datasource configuration as in DBCP
Summary: Request for a "shared" datasource configuration as in DBCP
Alias: None
Product: Tomcat Modules
Classification: Unclassified
Component: jdbc-pool (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2010-07-02 15:07 UTC by Jason
Modified: 2011-01-20 16:03 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
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
Fix properties
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 

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 
Comment 5 Konstantin Kolinko 2011-01-20 16:03:35 UTC
This feature was backported to Tomcat 6.0 in r1061511 and will be in 6.0.31.