C3P0下载地址:http://sourceforge.net/projects/c3p0/files/?source=navbar
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAArgAAAF6CAIAAAB9arxaAAAgAElEQVR4nO2dTVMcR7rv+UzwWeoraKdZcESwvGMs9eaeiLOyZ9rEPWPZGvc9RNizYI4sI8Z24FCY00hwmWnBwAwjCRoYM4hXgUB+6buot8yszKqsN7q6+vcLLbqrsjKfzHwyn39lZqORHgAAAICBkX4bAAAAANUFoQAAAABGEAoAAABgBKEAAAAARhAKAAAAYAShAAAAAEYQCkPL/vTkUqffRgBkojjvPVxoOI2Fw16vt9FyWhuF5AlQLyouFE7n/uMPc6+FC5sLI//ROSivwPPN+fnN8/D7/vTkzIj/b3qrvIIzmjTePo95cq4ZY3NpQkE1WMfWkoX98cnO55rzc0c9c4MY++6gPe9db27KvlRU2wpFTLpG3jhHm+PNzQOpRn2yRM/5XNOyqbVYe6/qjRstJ0TWBQgFAD0IBYn9pZmlfenCdDC9Hm2O9+MVXGdSYMb5XHNmZHZf85h/9+aFQsRgXdGuzfFNGt4VeiFEFAraBtH3XWdW0AdHm9NSiCqobbeWIhLkpunMuuYJNaqAVQJB9/VcfZZShdt6b8QbN1re+kEUhAKAnkEWCq8747eaI7eaI7ea05vBlYW5J38YudUcubXQ6e1Muwk+3wkfd69o1YbmVVgINltLI0J4m56dGXGnqqPNcfm11Z+jtY+HL1JeGv+lWT+J600Sp8ggYgnvjnJBI7P7kbt+PuorezRZfoOlbKV3R++tV2/MQXs+iNOd2Znx9nnvaHM8VAxaoaA0iL7vzAGmoLbVhuSIn8jG+EUr3hVtOrX9Ix0Ubdho7RIzKctasW1D8ef1r7Zc/cWgLrrqh4VEvTEqFAJ9IAiFYN3BS3u40NAuQgAMBdUXCp4UCP+5Mf51Z/yWryGCz68747ea409Oe71e53NXK/R6vZ3p4K6vDw6e/MFNJrK/NBOJcbqV26PNcWn2FK/Pzx0JYWlrabw5H4S98fZ5eKvnP+JPoF4CK5OkUBd5MAiQ2r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kSuQmCC" alt="" />
下载完成之后得到一个压缩包aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKEAAAATCAIAAAB3MfqfAAACeUlEQVRogWP4jgTevH39/PlzHV9+CHr27LmQSjYEPXzwMF7cGoK+j4IhBRgG2gGjgOYAGsc6vvw6PhJv33+5duN5RkOjkEr2m4+f7t9/f+D4/Xhx61fPXr35+OnA8fuNyqED69xRQAZAieOl25Z/ev9/4doNdjGRo9E8bABKHGv68i/fvvz1m+9TVyy0iAgdjebhARBx3L81V9FaTNWNzzpVMqLTomFFuJBKNqNCo5jzxNieA/Hi1i1qEc2q4VuSe0bjeGgBRBxHdFr0b83V8hT/tNn3y7VMSBxD2JA4vljLA+Hij2MGGBgMahhQAR6jyABE2o5VnFoOIEoZhEoz5NTxkYjotNDyFKckHyPbissFA6WGuoAY22nqAOIB1AUBCkxphpzm9rwUxjGK0aNxPKjiWMeXHxLNDi4CpMYxZpGFzMUsKjFDB7NEpWIcY9qOaRdWNWgewfQXQdsJBg5W20nyCDHmoLSrAxSYGt1FZ5foTqs2PT878sHBfgg6PzsSGSHHMVY/45Kibvzh9xh+M4lxKpp6XGrw205MmsAThvi9QKQ5KHGsps9abCewMEZtcYLezATdBwf7ZyVod3kJbyzWXpylBUdY45gY71E9jqmlBpdT0dTgzCh0iWOC9hIVx4rWYlqe4nGJCsVlenUlVpMyDBeWui4qtoFkX2LiGKtPaJqPaWQOMRFJTNwM0jimsD7GTOzEiGD1EqYuqqghaBee/ErQp8S4EJchyAxc5pAUzlBxCPXlyxey45ggwB++gwEMfhcSA3D5AiH65s0bWsQxMdloYMHgdyExAI8vUITu3r1Li3w8CgYWoMTx6BqBYQmGdgE1CogBAOiG5SW5u3jkAAAAAElFTkSuQmCC" alt="" />。
二、使用C3P0配置JNDI数据源
Tomcat6.x中配置JNDI数据源时默认使用的是Tomcat6.x自带的DBCP连接池,Tomcat6.x使用DBCP连接池配置JNDI数据源如下:
1 <Resource
2 name="oracleDataSource"
3 auth="Container"
4 type="javax.sql.DataSource"
5 maxActive="50"
6 maxIdle="10"
7 maxWait="10000"
8 username="lead_oams"
9 password="p"
10 driverClassName="oracle.jdbc.OracleDriver"
11 url="jdbc:oracle:thin:@192.168.1.229:1521:lead"/>
如果想让Tomcat6.x使用C3P0连接池配置JNDI数据源,在配置时,以下配置项需要修改
1、 type和factory的值发生变化
2、username=>user
3、url=>jdbcUrl
4、driverClassName=>driverClass
创建一个Web测试项目C3P0_JNDI_Config,解压aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKEAAAATCAIAAAB3MfqfAAACeUlEQVRogWP4jgTevH39/PlzHV9+CHr27LmQSjYEPXzwMF7cGoK+j4IhBRgG2gGjgOYAGsc6vvw6PhJv33+5duN5RkOjkEr2m4+f7t9/f+D4/Xhx61fPXr35+OnA8fuNyqED69xRQAZAieOl25Z/ev9/4doNdjGRo9E8bABKHGv68i/fvvz1m+9TVyy0iAgdjebhARBx3L81V9FaTNWNzzpVMqLTomFFuJBKNqNCo5jzxNieA/Hi1i1qEc2q4VuSe0bjeGgBRBxHdFr0b83V8hT/tNn3y7VMSBxD2JA4vljLA+Hij2MGGBgMahhQAR6jyABE2o5VnFoOIEoZhEoz5NTxkYjotNDyFKckHyPbissFA6WGuoAY22nqAOIB1AUBCkxphpzm9rwUxjGK0aNxPKjiWMeXHxLNDi4CpMYxZpGFzMUsKjFDB7NEpWIcY9qOaRdWNWgewfQXQdsJBg5W20nyCDHmoLSrAxSYGt1FZ5foTqs2PT878sHBfgg6PzsSGSHHMVY/45Kibvzh9xh+M4lxKpp6XGrw205MmsAThvi9QKQ5KHGsps9abCewMEZtcYLezATdBwf7ZyVod3kJbyzWXpylBUdY45gY71E9jqmlBpdT0dTgzCh0iWOC9hIVx4rWYlqe4nGJCsVlenUlVpMyDBeWui4qtoFkX2LiGKtPaJqPaWQOMRFJTNwM0jimsD7GTOzEiGD1EqYuqqghaBee/ErQp8S4EJchyAxc5pAUzlBxCPXlyxey45ggwB++gwE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THMIQKUg91nhNDTby5zrbzSVm49ocWK9rd6xx4QTlzeXiI/rQ+DNiq7uhBHufhWQ5cE4lCdCXFFgHKw+2wR5eK3nmBDUBcmYyzQlXW0GHwXEZTTercR5fgIBUdFnDs7hpHQ0NEwl4cYQHsFnSlAOdh9tohy8VtPmEa5uYLUBDTxhPaiXHBg7HpWJl202JlFEGz0cFmvyrnd1VCAcrD7bBHl4reeIEJQrqzX8Me6GK20Mbp2PDP13KXsRRszexa0GdFGSBsScYQMDnKTE6dJyyDSES2PYH6R41BDAcrB7jNC6Ok3lrlWXmnHfsmtCFzcIrePX5GrZwEo538JidHvYLEYYKg78b64X6dFbGd8urWGnwitD5TLYjW4k+X28Suqj1kAygl3geBiy/q3DHKTc799RZCzIvDlzk7w+1sA5SBQreRplDOgKQ5QcUCzzUa5IIXZKLdxPG5EOdx6AlTH8jTKVaLpgCUCKUbpyoYd94LBQK1gX+KYNjFa96IcBKpjefY8Jy+wEJ/q8EpDJw1/Rit3Lu5xsBqt2fFOiaxnXwkA5SCQc+TZ85zzb08R4DLgKLiVUZXbhXJGPT5JuTixxwAoB4EcKM+e59TvKxcpP62gnM1fdRNtPCYWT2gToW0FlINArpNnz3MD//ZkE7AaKBfMJri6QgxjEJyxwOJSlIPBXnBtkVorGVtg0VbEXMgKrlALtotEcq8KIheeeq3KQSBQHUsU5SbIxV1+IV4YDKGcG6arrGnd4RNkLKkLXskA5SAQaMfEegcLg3rstWk2fNmUFGc0o07XroEwuqPtbm7MgHIQCFQrwXewuNiAchAIpAhQ7mIDykEgkCJAuYsNKAeBQIr0b0bkLkCDnWNAOQgEUiSKcvYmcE2MEHr69WWua32OgUCgqgtQ7mIDykEgkCL9B/e1pMDfQA3LLI4yoBwEAin6fzSauZ3uracUAAAAAElFTkSuQmCC" alt="" />
将C3P0的相关Jar包添加到项目中,在项目的META-INF目录下创建一个context.xml文件,目录结构如下图所示:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWQAAAEmCAIAA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ZDoFwPv442Dd/fIzg/H0YDydE4jv/OCGux+ay9z98jPi6hqDQH+DoMkXl9QU4PVI985sFgC/4A9n8Wp4Q2xUiY0qqqFQ02v731czXw1vcHuAWsRCAJkAfsQfR234r5v6R3GjnNsAAACASURBVJT+EeW1/e/nlELN+XpYCf/VhtsrbEHGMsBWAJ/iD2ex46XNXw6leGnHS5vdHiAAwccf57empufFye0BAhB8/OEsAACuA7EAAEjhj8sQAIDrWHUWuzfU5pJ9owIAeA5LzqKlvi57oTd7oXd24G+Zd3Y0VT5i17AAAF7j/wFAGYqO6axD4AAAAABJRU5ErkJggg==" alt="" />
在tomcat服务器的lib目录下添加Oracle、MySQL、SQLServer三种数据库的驱动jar包,如下图所示:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW4AAAEaCAIAAAC+cyoPAAAgAElEQVR4nO2deYwj133nK0EQKAgiCVggWKzjtRWsdwPHghTYfySbLDYIskgW8B7ARjYWydi7SGIZQSTZsq0jkh1LsuRdW1IiRZHVM5KsTWDLkuaQpg/1OdPTPc0+2DPTJ9k3+ySnu9k3yeL99g+2ONXv+L1XF1lV/H3xxaC66tV7j2S9D3/vseo3GkGhUCjb0v72jQ40Go22aa3eLEOhUEEQogSFQjkgRAkKhXJAiBIUCuWATqBktOlz4dc+O/zqbw2+ck8sFstkMvXqFgqF8pduoWS06XPGA31/9+mhoSGkCQqFUtExSj7iSJPBpOcHn+r8/q9/+L1PtD798eanPvb+d/5lLBbTdd1iSxpOpuojfOdRNdDxRRZ+7bNEf4mkXjzhkzr/5K8+//zzS0tLdBUGQS25c0FL2/WmFN8xs2W0k6ruVKnWuMen7yqqjjq+XIZf/S2y/SyJPzXw8t2Ue1/4je7/+2/an/1ky1O/1vzUx5qf+lgsFqNrEVy13DKOy3LN9eqS2bdLVIwtw62Ze7r0tSNKUKZ0fLkMvnIPWX5i4OW7obLxpwgh//z1X37++efpWtSuYPcCkxqfaLNmlXZVUALUCf+pUieiBGVKx5fLwMt3k6mHR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EZ7aJEqdSH9UAJfB+C21RQpQ4Kyj1EWX4tlTpUfWG0O6hxKXUR9wFC6Aq0Smindw6VdoC4hpEibPiRyXWUMJ9Vhg+F1Fi1jZRAsjULzhmJx2uylpbiBJndSvjvHFsm0WJ6IE9U4kI0H5BCfBVr7i64YhstoUocVb8/7zCFEpYfEhzFCBBLNsLKAmGECXOip/6SIQSeOainu4EUWLZ1lCCqY9YIUqclTmUKF7uXJTgHKf2KEFjvpKayZkJDjdBCXcDrgottTpKjHruuecSiYjIjZZeAOWG/j8i0HUBYX9R9wAAAABJRU5ErkJggg==" alt="" />
1、在context.xml文件中加入如下配置信息
1 <Context>
2 <!-- 使用C3P0配置针对MySQL数据库的JNDI数据源 -->
3 <Resource
4 name="jdbc/MysqlDataSource"
5 auth="Container"
6 factory="org.apache.naming.factory.BeanFactory"
7 type="com.mchange.v2.c3p0.ComboPooledDataSource"
8 driverClass="com.mysql.jdbc.Driver"
9 idleConnectionTestPeriod="60"
10 maxPoolSize="50"
11 minPoolSize="2"
12 acquireIncrement="2"
13 user="root"
14 password="root"
15 jdbcUrl="jdbc:mysql://192.168.1.144:3306/leadtest"/>
16
17 <!-- 使用C3P0配置针对Oracle数据库的JNDI数据源 -->
18 <Resource
19 name="jdbc/OracleDataSource"
20 auth="Container"
21 factory="org.apache.naming.factory.BeanFactory"
22 type="com.mchange.v2.c3p0.ComboPooledDataSource"
23 driverClass="oracle.jdbc.OracleDriver"
24 idleConnectionTestPeriod="60"
25 maxPoolSize="50"
26 minPoolSize="2"
27 acquireIncrement="2"
28 jdbcUrl="jdbc:oracle:thin:@192.168.1.229:1521:lead"
29 user="lead_oams"
30 password="p"/>
31
32
33 <!--使用C3P0配置针对SQLServer数据库的JNDI数据源-->
34 <Resource
35 name="jdbc/SqlServerDataSource"
36 auth="Container"
37 factory="org.apache.naming.factory.BeanFactory"
38 type="com.mchange.v2.c3p0.ComboPooledDataSource"
39 driverClass="com.microsoft.sqlserver.jdbc.SQLServerDriver"
40 idleConnectionTestPeriod="60"
41 maxPoolSize="50"
42 minPoolSize="2"
43 acquireIncrement="2"
44 jdbcUrl="jdbc:sqlserver://192.168.1.51:1433;DatabaseName=demo"
45 user="sa"
46 password="p@ssw0rd"/>
47 </Context>
2.在web.xml引用JDNI数据源:
1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app version="2.5"
3 xmlns="http://java.sun.com/xml/ns/javaee"
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
6 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
7 <welcome-file-list>
8 <welcome-file>index.jsp</welcome-file>
9 </welcome-file-list>
10
11 <!--
12 JNDI配置的资源引用:
13 • res-ref-name:表示引用资源的名称
14 • res-type:此资源对应的类型为javax.sql.DataSource
15 • res-auth:容器授权管理
16 -->
17 <!--Oracle数据库JNDI数据源引用 -->
18 <resource-ref>
19 <description>Oracle DB Connection</description>
20 <res-ref-name>jdbc/OracleDataSource</res-ref-name>
21 <res-type>javax.sql.DataSource</res-type>
22 <res-auth>Container</res-auth>
23 </resource-ref>
24
25 <!--MySQL数据库JNDI数据 -->
26 <resource-ref>
27 <description>MySQL DB Connection</description>
28 <res-ref-name>jdbc/MysqlDataSource</res-ref-name>
29 <res-type>javax.sql.DataSource</res-type>
30 <res-auth>Container</res-auth>
31 </resource-ref>
32
33 <!--SQLServer数据库JNDI数据源引用 -->
34 <resource-ref>
35 <description>SQLServer DB Connection</description>
36 <res-ref-name>jdbc/SqlServerDataSource</res-ref-name>
37 <res-type>javax.sql.DataSource</res-type>
38 <res-auth>Container</res-auth>
39 </resource-ref>
40
41 </web-app>
3.部署C3P0_JNDI_Config Web应用到Tomcat服务器测试JNDI数据源
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAvkAAAAnCAIAAAAadcBZAAAOtklEQVR4nO1de3QU1R0eq3jac9SqtNpqEEEUUBEPr0KsTk89ChWtNpGiFhgehwAqNm8iFGf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35uEODI6XBkZIb29W9gRM3OogskeF5Sl9x6Rv0yMEAP/d1WOKwJ4N3xx8ZRzdMgKVlU9rQV2KETUq3SxOPDvsFHJa2gCxtnHodVKWIonTzT5IVVZTvpKTqfpIl3AJpD96AtFPTAN/wdPE8ksYyDE5KSXcsw+HwyP5VhuVBWJNukwWUo2Al5b21ypbaNFQk5cZ2baiw6ZJkdDQFqSsU40lEOmV4OCPYv3NOSoOSMymOYR0aSk0CRXlPTFLOdAXoo+u2D0gb3Waa/fik8FAsx4IiBakLKR96HHoyupPF56vpopkC3sYwOCkl3bEMh2NRjAJOvc5to3Onv7n1PSxbc2blh6w8QKBeAgC6XsdzaydkfzZQF95apUX8Pje2a0NFki51jQ47LFCoQf3dZAvoE1Kg2BceEFJLG49ex1yjI2DgP7LhiMEeqCWCtCYJDJ9ehRo0WmVHdaTQ71GsUa7B8zrW0Cd0QLkhYW4+obm0ced1RFHCP64y644OwMKA/1vEDtCKHaAVAMAh+PI6qioLgo1Cc9MDWAmwJrEDtGIHaAUAcAit16mtPgkEAoFAIBBoGfJ1XwcAaDbUwvtvZoBW7ACtAAAO4XY4/wdXWCQLaxpgXQAAAABJRU5ErkJggg==" alt="" />
部署到tomcat服务器的webapps目录之后,tomcat服务器就会自动在\conf\Catalina\localhost目录下生成一个C3P0_JNDI_Config.xml文件,如下图所示:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhgAAACKCAIAAABn16QmAAAccElEQVR4nO2dy28cyX3H+7gX/wEyAgTrg4Ec/BckBwO+BwGSW7JAYGNvPuyuD17vLpKDFwsICAIBCYJYlvxYZAGvzdXuSiQtSqIe1HIockguKT6GpESJokRSFJ8iOQ/Oq3JoudVTj1/9qrp7urrn98UXRE919a9qenp+n65u9pR38HK3w4c7Ie+ivaN2qBrUliN+oXYsQax8EDJ+laraAbjqYDtkbqttG4cDHj7v8IHaHdU6gwBb5cdbnQZWAd4MGb9KVQ30fsj4rSyC4+Pvqw11fqPD+9H9zHXvqb3/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Yqv2sXpNuq3hrQBykLuUI4AoHESNrE6sU0IpEG8YRhimk0KUWAUM6BxAgSGAO/2YVvSwoS/ETrvWBmCxLTia0IJKoRCdABaUwCSULCZNW4QCJlRtIg8WTCN5G0zC5tIcciAA+QbYmP0wOwkS70ghljP//1M63F9ISf2MqXKiFya+MFCbygjWka0G5Eou0AjUi6IGRKFbN8d0CCh5zRqmyDBC7hhh3BMhxKehkN05/FTlD1FEUWo4HEdGKr4CRIVSJWUBVyFcSFYJPgr6otbXBVl6RtaZsTI4v951oR34v0fUnfBYEEKW5PwnXE+qpNgDjcgvgXH18MKFZQbYjvdtIyAInF9SgtAIC2tCUEEhYNJJiJrZIWkEZdlocbUkQUgSTHUjFGLFfByTmQWN8jUaV75M12IPvDN1Si9DlPZtFA0v2JrcRvgvuRtS0m1wSBhJQVWT5HAl+wigskcAkmTr7NIoNEO7EVKUURSEhZEXRpS3ypHQFI75EAJMBc+MLX7DWWMFuQfIBT0lmMBItAQsqKXoMkYqIPyrX/WBWuuagY3CBBYjRwyZ+ZLUjIWTGBhJQJvb5HospWUgCo0jp8ix7YXDqy0XZD1eEewQmzAgmJFCjt/EPKiei3tjJsRiAhRVPa+YeUExFIMmxGICFFU9r5h5QTEUgybEYgIUVT2vmHlBMRSDJsRiAhRVPa+YeUExFIMmxGICFFU9r5h5QTEUgybEYgIUVT2vmHlBMRSDJsRiAhRVPa+YeUE/0/HHrPYlBQQDYAAAAASUVORK5CYII=" alt="" />
C3P0_JNDI_Config.xml文件中的内容就是我们在META-INF目录的context.xml文件中配置的那些内容。
jsp测试页面如下:
1 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
2 <%--引入JSTL标签库 --%>
3 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
5 <!DOCTYPE HTML>
6 <html>
7 <head>
8 <title>C3P0配置JNDI数据源连接测试</title>
9 </head>
10
11 <body>
12 <h3>针对MySQL数据库JNDI数据源测试</h3>
13 <%--使用sql:query标签发送SQL语句去数据库查询数据,查询的结果集保存到rs变量当中,dataSource属性指明使用的数据源--%>
14 <sql:query var="rs" dataSource="jdbc/MysqlDataSource">
15 <%--MySQL JNDI数据源测试 SQL--%>
16 select * from ld_user
17 </sql:query>
18 <%--使用c:forEach标签遍历查询结果集rs中的每一行--%>
19 <c:forEach var="row" items="${rs.rows}">
20 <%--${row.字段名}获取字段的值--%>
21 ${row.id}---${row.username}---${row.password}<br/>
22 </c:forEach>
23 <hr/>
24 <h3>针对Oracle数据库JNDI数据源测试</h3>
25 <%--使用sql:query标签发送SQL语句去数据库查询数据,查询的结果集保存到rs变量当中,dataSource属性指明使用的数据源--%>
26 <sql:query var="rs" dataSource="jdbc/OracleDataSource">
27 <%--Oracle JNDI数据源测试 SQL--%>
28 SELECT * FROM LEAD_OAMS_DBSOURCES
29 </sql:query>
30 <%--使用c:forEach标签遍历查询结果集rs中的每一行--%>
31 <c:forEach var="row" items="${rs.rows}">
32 <%--${row.字段名}获取字段的值--%>
33 ${row.RESOURCEID}---${row.DBSOURCE_NAME}---${row.DBSOURCE_TYPE}<br/>
34 </c:forEach>
35 <hr/>
36 </body>
37 </html>
C3P0 自动重连相关参数
idleConnectionTestPeriod:C3P0会有一个Task检测pool内的连接是否正常,此参数就是Task运行的频率。默认值为0,表示不进行检测
acquireRetryAttempts:pool请求取新连接失败后重试的次数
C3P0目前存在问题:
当数据库重启后,C3P0不会自动重新初始化数据库连接池,当新的请求需要访问数据库的时候,此时回报错误(因为数据库重启,连接失效),同时刷新数据库连接池,丢弃掉已经失效的连接,当第二个请求到来时恢复正常。
C3P0目前没有提供当获取已建立连接失败后重试次数的参数,只有获取新连接失败后重试次数的参数(acquireRetryAttempts )。
要解决此问题,可以通过设置idleConnectionTestPeriod 参数折中解决,该参数的作用是设置系统自动检查连接池中连接是否正常的一个频率参数,时间单位是秒。