mysql - java Connection Pooling from Oracle -
i'm trying make connection pool following link: http://192.9.162.55/developer/onlinetraining/programming/jdcbook/conpool.html
i don't understand something: somewhere in class jdcconnectiondriver implements driver can find method:
public static final string url_prefix = "jdbc:jdc:"; public connection connect(string url, properties props) throws sqlexception { if(!url.startswith(url_prefix) { return null; } return pool.getconnection(); }
so, if use mysql (for example), url start jdbc... method connect never return connection... why that?
also ask best connection pooling framework...
so, if use mysql (for example), url start jdbc... method connect never return connection... why that?
this driver written connect jdc connection. that's why. it's looking url starting jdbc:jdc:
, not jdbc:
.
also ask best connection pooling framework...
the known connection pooling library out there , used on many application servers , servlet containers apache object pool. common connection pooling apache dbcp (database connection pooling).
also, stated rocky triton, c3p0 jdbc library included connection , statement pooling.
Comments
Post a Comment