Hello there. I am kind of confused how can I achieve memorizing of thread names getting and releasing connections:
First part is not so hard, just wrapper around DataSource with overridden getConnection method which put thread name in a Collection when delegating to actual DataSource, something like this snippet concept-wise
The problem arises when it comes to the removing of thread name from a Collection on release: the only probably possible way is to do some AOP-magic with PoolEntry release method for me atm. Are there any existing workarounds or ideas, guys?
Hello there. I am kind of confused how can I achieve memorizing of thread names getting and releasing connections: First part is not so hard, just wrapper around DataSource with overridden getConnection method which put thread name in a Collection when delegating to actual DataSource, something like this snippet concept-wise
The problem arises when it comes to the removing of thread name from a Collection on release: the only probably possible way is to do some AOP-magic with PoolEntry release method for me atm. Are there any existing workarounds or ideas, guys?