Product Documentation

FairCom JDBC Developer's Guide

Previous Topic

Next Topic

Driver Socket SEND/RECV Timeout

A send/recv timeout option allows a FairCom DB SQL JDBC client to 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.

In FairCom DB V11, the default JDBC socket timeout has been changed from 30 minutes to 0 (no timeout).

With the FairCom DB 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://localhost:6597/ctreeSQL", info);

Note: The time-out is an integer it is specified as a string.

TOCIndex