resin版本:resin-3.0.17
mysql 驱动版本:mysql-connector-java-3.1.12-bin
jdk版本:j2sdk1.4.2_07
配置方法:
1.找到resin安装目录下/conf:
打开resin.conf
找到如下地方:更改相应参数
<!--
- Sample database pool configuration
-
- The JDBC name is java:comp/env/jdbc/test
-
-->
<database>
<jndi-name>jdbc/test</jndi-name>
<driver type="com.mysql.jdbc.Driver">
<url>jdbc:mysql://localhost:3306/test</url>
<user>root</user>
<password>123456</password>
</driver>
<prepared-statement-cache-size>8</prepared-statement-cache-size>
<max-connections>20</max-connections>
<max-idle-time>30s</max-idle-time&