You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@empire-db.apache.org by Harald Kirsch <Ha...@raytion.com> on 2014/06/18 16:56:33 UTC
connection pooling with empire-db
Hi all,
I have the need to use connection pooling with empire-db. Are there any
best practices or code examples of how to organize this.
Or asking directly: is it good to use the connection pool for the JDBC
connection and have code like
conn = datasource.getConnection(); /** get one from the pool **/
myDbDatabase.open(driver, conn);
....
myDbDatabase.close();
conn.close(); /** ?? **/
or would it be better to somehow create a DataSource that creates
myDbDatabase and pools it?
Regards,
Harald.