Re: [dbcp] Wait forever when get Ceonnction from data source

2005-01-18 Thread Dirk Verbeeck
Paul, The problem is that you cannot safely interrupt the network communication that's going on inside the driver. If the driver doesn't expose the network layer timeout then you're stuck. The only thing you can do is doing the driver.getConnection() in a separate thread and then your

Re: [dbcp] Wait forever when get Ceonnction from data source

2005-01-17 Thread Dirk Verbeeck
Connection timeout is a database driver specific property. You can set it using the DBCP connectionProperties property. Or sometimes it is appended to the URL. In your case you probably need to set the timeout on the odbc driver. Once the connection is in the pool then the maxWait can be used

Re: [dbcp] Wait forever when get Ceonnction from data source

2005-01-17 Thread Paul Hsu
return. Paul - Original Message - From: Dirk Verbeeck [EMAIL PROTECTED] To: Jakarta Commons Developers List commons-dev@jakarta.apache.org Sent: Monday, January 17, 2005 1:00 PM Subject: Re: [dbcp] Wait forever when get Ceonnction from data source Connection timeout is a database driver