-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Michael Fortin opened SPR-2022 and commented
According to Hibernates docs, release mode on_close is 'highly discouraged' yet it seems to be the only option available when using springs transaction manager, after_transaction is the default with jdbc transactions with the current release of hibernate:
http://www.hibernate.org/hib_docs/v3/reference/en/html/transactions.html#transactions-connection-release
Having support for after transaction would be helpful not only for 'long conversations' but for other scenarios as well. For example I have a single http request that posts to several outside vendors and I have to wait for their responses. My application currently does not scale well because I have to hold a connection to the database. With hibernate 3.1 I could simply commit before I post to the external sources to release the connection.
Affects: 2.0 M5