473,471 Members | 2,613 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 5801
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jochen Daum | last post by:
Hi, I have to emulate a "file upload" to a Java Servlet which is done with the class URLConnection. The java source basically does URLConnection conn =...
2
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
0
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to...
8
by: Rhino | last post by:
I'm trying to use the JDBC Universal driver to get a Type 4 connection in a Java client program running under DB2 V8.2.1 but I keep getting a "connection refused: connect" message. I'm running...
0
by: anaik100 | last post by:
am trying to run a java db2 program. my db2 is in os/390. below is the code public class T4DB2Connect { public static void main(String args) { try { // load the DB2 Driver...
6
by: ganesh.m | last post by:
Hi, I am new to DB2. I am getting this error while loading the DB2Driver. I don't have any idea about where i might have gone wrong. please help me. Below is the stack trace. Stack Trace:...
2
by: Santhosh | last post by:
Hi All I could't able to connect to Db2 DB using the java program I received the following error: Error is No suitable driver java.sql.SQLException: No suitable driver at...
0
by: techiesekar07 | last post by:
Hi All, I am trying to connect to DB2 database from an java application, but my connection fails. I tries with two types of drivers type2 driver com.ibm.db2.jdbc.app.db2driver and type4 driver...
2
by: getthatthing123098 | last post by:
Hello Everybody, dis is Abhinav. I'm facing 2 errors: 1. In my DBBrowser in MyEclipse my Driver ClassName is "com.ibm.db2.jcc.DB2Driver" instead of "com.ibm.db2.jdbc.app.DB2Driver". The...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.