B
Bill Dennis
I've got an application that connects to a DB2 database as follows:
java.util.Properties info = new java.util.Properties();
info.put("user", user);
info.put("password", password);
Connection con = dbDriver.connect(url, info);
Sometimes, however, the DB2 driver never returns from the call to
..connect() and after some period of time, I'd like to kill the thread
that's trying to do the connection. I know that Thread.stop()
shouldn't be used. Any suggestions? Would Thread.interrupt() work?
Thanks.
Bill Dennis
java.util.Properties info = new java.util.Properties();
info.put("user", user);
info.put("password", password);
Connection con = dbDriver.connect(url, info);
Sometimes, however, the DB2 driver never returns from the call to
..connect() and after some period of time, I'd like to kill the thread
that's trying to do the connection. I know that Thread.stop()
shouldn't be used. Any suggestions? Would Thread.interrupt() work?
Thanks.
Bill Dennis