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