getConnection method for creating a Vector of connections

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);="">


Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.

Upcoming Events