psteitz commented on PR #324:
URL: https://github.com/apache/commons-dbcp/pull/324#issuecomment-1904762471

   Thanks for weighing in, Bernd.  Do you by chance have some links to what 
drivers are actually doing here?  I looked at Postgres and Mysql and could not 
find any implementations.  I would like to understand better what the drivers 
actually do.  The spec makes it look like, as Gary says, more an app concern, 
except they expect pool managers to send the messages which does not make sense 
to me.  I must be missing something.  When you say "caching" I am not sure what 
you mean.  The whole pool is essentially a cache.  
   
   From what I have gleaned so far, it seems to me that the better place to put 
these calls might be in activate and passivate.  That led me to think that 
allowing PoolableConnectionFactory to be pluggable or the lambdas for the 
lifecycle methods would allow users to set this up however they wanted. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to