lplumelle wrote:
I think that what you said applies if you set hibernate.connection.release_mode = "on_close" which is the default value in 3.0.5. The documentation says : "By default, a JDBC connection is held until the session is explicitly closed or disconnected."
That's not what I want. I want to understand what the option after_transaction does.
I guess then you'll have to close the transaction.
You can invoke commit (or rollback, it shouldn't make a difference) after a query to complete the transaction.
Otherwise, it's going to be kept open.