getConnection method for creating a Vector of connections

COMPONENT JAVA
Extending the Power of JDBC Drivers
Nitin Nanda
Listing 3. getConnection method for creating a Vector of connections.


for(int i = 0; i < totalconnections_;="" i++)="" {="" try="" {="" connection="" connection="DriverManager.getConnection(jdbcOdbcUrl," username,="" passwd);="" jrconnection="" jrconnection="new" jrconnection(connection);="" urlconnections.addelement(jrconnection);="" }="" .="" .="" .="" }="" add="" the="" vector="" of="" connections="" to="" the="" main="" pool="" connectionpool_.put(url,="" urlconnections);="">