469,904 Members | 2,290 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,904 developers. It's quick & easy.

Java - Does DB2Driver support connection timeout?

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.

Jan 2 '07 #1
1 5297
dw********@gmail.com wrote:
We are using UDB 8 with net drivers, and trying to set the connection
timeout, by calling DriverManager.setLoginTimeout()
http://publib.boulder.ibm.com/infoce...d/r0010294.htm

# DataSource.setLoginTimeout(int) is ignored
# 1 DriverManager.setLoginTimeout(int) is ignored

Bernd

--
What do you get when you cross a mail pigeon with a parrot ? Voice mail
Jan 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jochen Daum | last post: by
2 posts views Thread by Kent Lewandowski | last post: by
8 posts views Thread by Rhino | last post: by
reply views Thread by anaik100 | last post: by
2 posts views Thread by Santhosh | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.