日期:2014-05-16  浏览次数:20632 次

给jdbc加connection pool

参考

http://today.java.net/pub/a/today/2005/11/17/app-managed-datasources-with-commons-dbcp.html

?

改成maven版本,加c3p0版本,测试通过。

环境=tomcat6, jdk1.6

?

keyword=

c3p0, dbcp, maven, listener, ServletContextListener, log4j, servlet, jndi, hsql, contextInitialized, contextDestroyed, context-param

?

具体内容看附件代码。

code urls=

https://github.com/iteye1/jdbc-dbcp-mvn/zipball/v1.0

https://github.com/iteye1/jdbc-c3p0/zipball/v1.0


六月早晨
六月早晨