// load the DB2 Driver
Class class1 = Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
//Db data = new Db();
// Get the connection with authentication
Connection connection = DriverManager.getConnection(url, user,
password);
// Disable auto-commit mode
connection.setAutoCommit(false);
return connection; |