I have an application which uses oracle.ucp.jdbc.PoolDataSource to maintain pool of JDBC connections. I am able to get a connection and use it.
At the end of my function, I want to return the connection to the pool. I don't find any method to return the the pool.
How to return the connection to the pool?
The fine manual oracle.ucp.jdbc Class PoolDataSourceImpl
So, as noted in the comments, use
connection.close(). The connection is a proxy and the close method will return the connection to the pool instead of closing the connection as is usual.