protected Connection openH2Connection(boolean autocommit) throws SQLException {
  System.setProperty("h2.serializeJavaObject","false");
  String dbName="test";
  Connection conn=DriverManager.getConnection("jdbc:h2:mem:" + dbName + ";DB_CLOSE_DELAY=-1");
  conn.setAutoCommit(autocommit);
  return conn;
}

protected Connection openH2Connection ( boolean autocommit ) throws SQLException { System . setProperty ( "h2.serializeJavaObject" , "false" ) ; String dbName = "test" ; Connection conn = DriverManager . getConnection ( "jdbc:h2:mem:" + dbName + ";DB_CLOSE_DELAY=-1" ) ; conn . setAutoCommit ( autocommit ) ; return conn ; }
gets connection from a pool .
