Issue Details (XML | Word | Printable)

Key: DBCP-218
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Bill Liu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Dbcp

basicDataSource.setLoginTimeout(n) not work?

Created: 10/May/07 11:24 PM   Updated: 27/Aug/07 03:32 PM
Return to search
Component/s: None
Affects Version/s: 1.1, 1.2, 1.2.1, 1.2.2
Fix Version/s: 1.3

Time Tracking:
Not Specified

Environment: Windows
Issue Links:
Reference
 

Resolution Date: 12/Jun/07 06:25 PM


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Phil Steitz made changes - 11/May/07 02:33 AM
Field Original Value New Value
Affects Version/s 1.1 [ 12311719 ]
Affects Version/s 1.2.1 [ 12311975 ]
Fix Version/s 1.3 [ 12311977 ]
Affects Version/s 1.2 [ 12311721 ]
Henri Yandell made changes - 12/Jun/07 06:25 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]
Benoit Lafontaine made changes - 27/Aug/07 03:32 PM
Link This issue relates to DBCP-238 [ DBCP-238 ]