https://issues.apache.org/bugzilla/show_bug.cgi?id=47061
Summary: JDBCStore for saving sessions doesn't support datasource Product: Tomcat 6 Version: 6.0.16 Platform: PC OS/Version: Linux Status: NEW Keywords: PatchAvailable Severity: normal Priority: P2 Component: Catalina AssignedTo: dev@tomcat.apache.org ReportedBy: bri...@bristol.gov.uk Created an attachment (id=23518) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23518) Patch JDBCStore to use datasource. We are using the JDBCStore to store sessions. The current implementation can only be configured with database connection parameters. Each web application will create and hold on to its own connection to the session store. Our tomcats contain a large number of webapps, and this causes and unduly large number of connections to be made to the database. In addition, all our other database connections are configured using datasources, and so for consistency we would much prefer to use a datasource. I have patched JDBCStore to allow the use of datasource to obtain the connection. I have added a parameter called "datasourceName". If this is defined it will use this to lookup the datasource in JNDI. If it is not configured, it will fall back to using direct connection. Patch is attached. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org