Re: DBCP Pool Max Connection

2002-12-14 Thread Craig R. McClanahan


On Fri, 13 Dec 2002, Sundar Chakravarthy wrote:

 Date: Fri, 13 Dec 2002 12:18:34 -0500
 From: Sundar Chakravarthy [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: DBCP Pool Max Connection


 What happens if #concurrent users exceeds
 max pool size ? I get an exception ?
 Can I try to catch it say print something like
  System is busy, Try again ? 


It depends on how you configure the connection pool.  If you're using
Tomcat 4.1 (which uses commons-dbcp under the covers), the maxWait
configuration property determines how long (in milliseconds) the pool will
wait before causing the getConnection() call to throw an exception.  Set
this to -1 to wait forever until a connection is returned by some other
user.

For more info on the properties you can configure:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

 Thanks

Craig


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




DBCP Pool Max Connection

2002-12-13 Thread Sundar Chakravarthy

What happens if #concurrent users exceeds
max pool size ? I get an exception ? 
Can I try to catch it say print something like
 System is busy, Try again ? 

Thanks


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]