Driver Socket SEND/RECV TimeoutA send/recv timeout option has been added such that a c-treeACE SQL JDBC client can request a timeout for a socket. If the client experiences a lengthy wait for the server to reply, the client can continue to work after closing the connection. With the c-treeACE SQL JDBC Driver, it is possible at connection time to set a timeout value in milliseconds using the DriverManager.getConnection(string, properties) method as follows. Example Properties info = new Properties(); info.setProperty("user","ADMIN");
info.setProperty("password","ADMIN");
info.setProperty("sock_timeout","30000");
conn = DriverManager.getConnection ("jdbc:ctree:6597@localhost:ctreeSQL", info);
Note: The time-out is an integer it is specified as a string. |
|||