empire-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harald Kirsch <Harald.Kir...@raytion.com>
Subject connection pooling with empire-db
Date Wed, 18 Jun 2014 14:56:33 GMT
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);
conn.close(); /** ?? **/

or would it be better to somehow create a DataSource that creates 
myDbDatabase and pools it?


View raw message