I would like to ask if you could add a feature which allows one into the process where one can get notified about connections which have been borrowed or returned to the pool.
The following patch will introduce a new interface (the DataSourcePoolListener) with two methods
public void onAfterBorrowConnection(Connection con);
public void onBeforeReturnConnection(Connection con);
I need this feature to issue a specific command to the database before staring to access it and don't wanted to implement all the datasource pooling myself, extending Avajes default implementation is not possible due to the DatasourceManager.
I think this API is usefull for others anyway.
Would be great if you could apply the patch.