Hi all,
I have a situation in which I want to set a timeout for a method call.. or something like it.... eg.
public Connection getConnection(){
Connection conn = DriverManager.getConnection("CONNSTRING","UID","PWD");
return conn;
// i wish to return null if the DriverManager call doesnt respond in 500 ms.
}
Any clues...