Tomcat JDBC Pool plugin

  • Tags : pool, jdbc, datasource, ddsg
  • Latest : 7.0.37
  • Last Updated: 23 March 2013
  • Grails version : 2.0 > *
0 vote
Dependency :
compile ":jdbc-pool:7.0.37"

Source Issues

Summary

Replaces the default Grails Commons DBCP Pool with Tomcat JDBC Pool

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 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

  • 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