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 } } }