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
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
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