import java.sql.*;


public class Spy {
	public static void main(String[] args) {        
        
        try {
        	
        	Class.forName("org.postgresql.Driver");
        	
        	Connection newConnection = null;
        	
        
            newConnection = DriverManager.getConnection("jdbc:postgresql://localhost/jTest?prepareThreshold=3",
            		"postgres", "");
            newConnection.setAutoCommit(false);
            
            
            PreparedStatement ps = newConnection.prepareStatement("SELECT COUNT(*) FROM t_jtest");
            
            ResultSet rs = ps.executeQuery();
                        
            rs.close();
            ps.close();                                    
            
           // newConnection.commit();
           Thread.sleep(3600000);            
            
        } catch (Exception e) {
            e.printStackTrace();
        }

	}
}
