solidDB Help : Programming : solidDB JDBC driver : solidDB JDBC driver extensions : Non-standard JDBC connection properties : Timeout properties
  
Timeout properties
You can set timeout values by using the following connection properties:
See
solid_connection_timeout_ms on page 1904
solid_login_timeout_ms on page 1905
solid_idle_timeout_min on page 1904
Example that uses solid_connection_timeout_ms property
// Set connection timeout with "solid_connection_timeout_ms" property //
public class Test {
  public static void main( String args[] ){
  // create property object
  Properties props = new Properties();
  // put username and password in the properties
  props.put("user", "MYUSERNAME");
  props.put("password", "MYPASSWORD");
  //
  // Put connection timeout in the property object
  //
  props.put("solid_connection_timeout_ms", "10000");
  try {
    // create driver
    Driver d = (Driver)(
      Class.forName("solid.jdbc.SolidDriver").newInstance());
    // get connection with url and property info
    Connection c = DriverManager.getConnection("jdbc:solid://localhost:1313", props );
    // close connection c.close();
   } catch ( Exception e ) {
      ; // save the day
    }
  }
}
Go up to
Non-standard JDBC connection properties