Connection Pooling: Code Beispiel
Connection con = null;
try {
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup(
"jdbc/ inventoryDB");
con = ds. getConnection( user, password);
.
.
.
} finally {
if (con != null) con. close();
Vorherige Folie
Nächste Folie
Zurück zur ersten Folie
Graphik-Version anzeigen