[ 
https://issues.apache.org/jira/browse/DBCP-238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benoit Lafontaine updated DBCP-238:
-----------------------------------

    Attachment: DBCP-238.patch

This patch try to add the loginTimeout feature. 
This is made by creating another thread that will call the 
_driver.connect(_connectUri, _props);
The main thread will wait for it by using the Thread.join(timeout) method. 
If the join method returns by timeout and the connect didn't finished, then the 
main method will throw an SQLException "timeout". 

Anyway, for the moment, the second Thread will not be stopped, even if the 
Thread.interrupted() method is called.



> The BasicDataSource setLoginTimeout and getLoginTimeout are not supported
> -------------------------------------------------------------------------
>
>                 Key: DBCP-238
>                 URL: https://issues.apache.org/jira/browse/DBCP-238
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.2.2
>            Reporter: Benoit Lafontaine
>         Attachments: DBCP-238.patch
>
>
> Methods setLoginTimeout() and getLoginTimeout() are not supported.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to