I'm attempting to get an ActiveWeb/ActiveJDBC connection configured to use C3P0 for connection pooling.
I know the documentation provided by Javalite says each transaction will be a single opened/closed connection, but does also mentions we can open a datasource via:
new DB("default").open( cpds );
This leads me to think it might be possible to intercept the connection open/close mechanism by including on AppControllerConfig:
addGlobalFilters( new DBConnectionFilterTest("default", true) );
... where DBConnectionFilterTest is a custom class extending DBConnectionFilter that overrides the before/after behavior that opens and closes the connection. The Datasource is configured within the constructor using a ComboPooledDataSource.
I was curious if anyone had any insight on this configuration, or have been successful in integrating C3P0 to activeweb/activeJDBC?
The furthest I have gotten so far is to get C3P0 to fire up. I see the 5 connections in my session monitor, but activeweb still initiates a new connection when performing a transaction. The C3P0 pool hasn't moved.