We are using UDB 8 with net drivers, and trying to set the connection
timeout, by calling DriverManager.setLoginTimeout()
It seems that this setting is not being honored. We set it with the
following code:
<paste begin>
// Load the appropriate data access driver.
Class.forName(properties.getDriverName());
DriverManager.setLoginTimeout( 5 );
// Connection
return DriverManager.getConnection(properties.getUrl(),
properties.getUserId(), properties.getPassword());
<paste end>
However, it does not seem to work. Rather than timing out after 5
seconds, it takes about 3 minutes.
Can anyone confirm if the DB2 JDBC Drivers support LoginTimeout?
Thx.