jdbc - Cancel current transaction with Spring TransactionTemplate -
I am using a connection pool and spring How can this be done in the spring that you call the connection used immediately? If you want to release the connection after the transaction. I know that it will only use the connection being released faster than the default behavior. At least as far as hibernate is concerned, if you are using other libraries then please describe which. TransactionTemplate . If you want to close the connection pool then all the connections must be returned back to the pool, this means that
connection.close () should be called. I have a thread using some of the
TransactionTemplate for some queries and the second thread that wants to call some shutdown method on the connection pool, but before doing this, do this by
TransactionTemplate To close all connections (actually only returning them to the pool).
Hibernate.connection.valve_mad = later_transition
Comments
Post a Comment