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.

Reply via email to