struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yue Lieji" <ymlj...@hotmail.com>
Subject how to config connection time out in struts connectionpool
Date Sat, 02 Aug 2003 08:48:52 GMT
who can tell me how to config the connection time out in a struts 
connectionpool?

i config my connectionpool as below.but connection will be exhausted very 
soon.

<data-sources>
 <data-source key="testSource" 
type="org.apache.commons.dbcp.BasicDataSource">
  <set-property property="driverClassName" 
value="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
  <set-property property="url" 
value="jdbc:microsoft:sqlserver://myComputer:1433;DatabaseName=myDB"/>
  <set-property property="maxActive" value="50"/>
  <set-property property="maxIdle" value="5"/>
  <set-property property="username" value="user"/>
  <set-property property="maxWait" value="5"/>
  <set-property property="password" value=""/>
 </data-source>
</data-sources>

_________________________________________________________________
免费下载 MSN Explorer:   http://explorer.msn.com/lccn  


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message