Topic: 关于spring中数据连接池问题求助

  Print this page

1.关于spring中数据连接池问题求助 Copy to clipboard
Posted by: Platformer
Posted on: 2006-08-11 15:50

我的数据连接池是这样配置的:

<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName">
<value>oracle.jdbc.driver.OracleDriver</value>
</property>
<property name="url">
<value>jdbc:oracle:thin:@192.168.0.28:1521:gisdata</value>
</property>
<property name="username">
<value>smdp</value>
</property>
<property name="password">
<value>smdp</value>
</property>
</bean>

我现在想在这里边做些限制,配置连接数据库的最大连接数,和空闲等。
请问这应该用什么属性来设置,或者是您有这方面的资料给我推荐下
谢谢

2.Re:关于spring中数据连接池问题求助 [Re: Platformer] Copy to clipboard
Posted by: why
Posted on: 2006-08-11 18:51

add those properties according to org.apache.commons.dbcp.BasicDataSource's API?
http://jakarta.apache.org/commons/dbcp/apidocs/org/apache/commons/dbcp/BasicDataSource.html


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923