generic connection pool

14 views
Skip to first unread message

ibrahim olanrewaju

unread,
Jun 28, 2016, 11:22:31 AM6/28/16
to Jongo
I would like to implement a database pool as a generic connection in this format .

public static final String dbDriver = "com.mysql.jdbc.Driver";
public static final String dbURL = "jdbc:mysql://localhost/DbName";
public  static final String dbLogin = "root";
public static final String dbPassword = "12345";

public static Connection getConnect() {
		Connection conn;

		try {
			Class.forName(dbDriver);
			conn = DriverManager.getConnection(dbURL, dbLogin, dbPassword);
		} catch (SQLException e) {
			 e.getMessage();
		} 
		
	}
how can i implement this in JONGO.  please...
Thanks
Reply all
Reply to author
Forward
0 new messages