How to use the TimeToLiveConnectionTimeoutCallback within Oracle UCP (Universal Connection Pool)?
I would expect that either the PoolDataSource or the UniversalConnectionPoolManager has an interface to register such a callback. And I would expect that such an interface would pass the concerned Connection by the interface. Neither is true.
It seems that I have to register an individual TimeToLiveConnectionTimeoutCallback to each UniversalPooledConnection which seems to me tricky, ugly (lots of UCP imports/glue code) and difficult (create a DataSource wrapper).
Or did I get something wrong? Unfortunately the documentation remains silent.