jdbc - Cancel current transaction with Spring TransactionTemplate -


I am using a connection pool and spring 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).

How can this be done in the spring that you call the connection used immediately?

  Hibernate.connection.valve_mad = later_transition   

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.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -