0

if the close of javax.sql.connectionpooled connection,it will not leave any INACTIVE SESSION in Database.in my case i can see many INACTIVE SESSIONS in DB(oracle), how to close it,programatically.

1 Answer 1

1

Are you talking about a javax.sql.PooledConnection implementation (which should not be used by you, but only by a connectionpool), or a Connection obtained from a connection pool?

If the first: closing a PooledConnection should close the physical connection, if the second: closing a (logical) connection obtained from the connectionpool should leave the physical connection open, because that is the whole point of the connectionpool.

Things get a bit more complicated when you abuse various layers of datasource which each do their own connectionpooling.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.