Closed hjbrock closed 9 years ago
ConnectionManager can be used to pull from the connection pool. Before starting up tomcat, make sure you replace "user" and "password" in context.xml with the appropriate values.
Then, in your classes you can:
ConnectionManager cm = ConnectionManager.getInstance();
Connection conn = cm.getConnection();
...
conn.close();
Create the connection management class including reading creds from a file.