lundi 8 juin 2015

c3p0 connection pooling, DataSources factory, how do I close the pool?

I'm trying to use C3P0 for connection pooling with both PostgreSQL and SQLite. The PostgreSQL side works no problem. I've followed the directions here, but I don't understand how to close the SQLite side down when I'm done with it.

In other words, on the PostgreSQL side, where I'm using a ComboPooledDataSource, I can call .close() on my ComboPooledDataSource as shown here. I feel like there should be a .close() for the SQLite side too, but I don't see one on the DataSource.

How do I close down the SQLite side appropriately? Do I even need to?

Aucun commentaire:

Enregistrer un commentaire