You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2007/06/12 20:26:29 UTC

[jira] Closed: (DBCP-218) basicDataSource.setLoginTimeout(n) not work?

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

Henri Yandell closed DBCP-218.
------------------------------

    Resolution: Fixed

svn ci -m "Adding the Javadoc to state that getLoginTimeout and setLoginTimeout are NOT supported by BasicDataSource  as per DBCP-218" src/java/org/apache/commons/dbcp/BasicDataSource.java

Sending        src/java/org/apache/commons/dbcp/BasicDataSource.java
Transmitting file data .
Committed revision 546583.

> basicDataSource.setLoginTimeout(n) not work?
> --------------------------------------------
>
>                 Key: DBCP-218
>                 URL: https://issues.apache.org/jira/browse/DBCP-218
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.1, 1.2, 1.2.1, 1.2.2
>         Environment: Windows
>            Reporter: Bill Liu
>             Fix For: 1.3
>
>
> Hi:
> We tried to set the login timeout value of the basic data source but got the exception. Is this feature (Login timeout is not supported.)? We want the connection pool not to wait forever if the database is too busy. Any ideas? Thanks.
> In the code:
> BasicDataSource bds = new BasicDataSource();
> bds.setDriverClassName("oracle.jdbc.driver.OracleDriver");
> bds.setUsername("my username");
> bds.setPassword("my password");
> bds.setUrl("jdbc:oracle:thin:@mrhost:1521:test");
> bds.setMaxActive(2);
> bds.setLoginTimeout(5);
> Result:
> Exception in thread "main" java.lang.UnsupportedOperationException: Login timeout is not supported.

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


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