Tomcat JDBC Pool plugin

  • Tags: pool, jdbc, datasource, ddsg
  • Latest: 7.0.47
  • Last Updated: 07 January 2014
  • Grails version: 2.0 > *
0 vote
Dependency:
compile ":jdbc-pool:7.0.47"

 Source  Issues

Summary

Replaces default Grails Commons DBCP Pool with Tomcat JDBC Pool (https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html)

Description

Replaces the default Grails Commons DBCP Pool with Tomcat JDBC Pool. Versions 7.0.37 and above require Grails version 2.0 or higher; to use the plugin in Grails 1.3 use version 1.0.9.3. Version 1.0.9.3 has support for the datasources plugin, whereas versions 7.0.37 and above work with the multiple-datasources support in Grails 2.0.

There are only a couple of lines of code in the plugin. The plugin just replaces the bean's class name with "org.apache.tomcat.jdbc.pool.DataSource" for beans having the class "org.apache.commons.dbcp.BasicDataSource" (this is done in doWithSpring which is called before the Spring context is running). Tomcat JDBC Pool is properties-compatible with Commons DBCP.

Information about Tomcat JDBC Pool:

Tomcat JBDC Pool comes with SpringSource tcServer:

Plugin History

  • 01/07/2014 7.0.47 - Changes:
    • Upgraded JARs to latest version 7.0.47
  • 03/23/2013 7.0.37 - Changes:
    • Upgraded JDBC commons pool lib to latest version 7.0.37
    • Changed plugin version to match that of lib
  • 02/2012 1.0.9.3 - Changes: (contribution by Donal Murtagh)
    • Upgraded JDBC commons pool lib to latest version 1.0.9.3
    • Changed plugin version to match that of lib
    • Upgraded to Grails 2.0.1