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

Upcoming Training Events

0 AM
Visual Studio Live! San Diego
September 8-12, 2025
Live! 360 Orlando
November 16-21, 2025
Cloud & Containers Live! Orlando
November 16-21, 2025
Data Platform Live! Orlando
November 16-21, 2025
Visual Studio Live! Orlando
November 16-21, 2025