Skip to content

Hibernate 3.1 with connection.release_mode after_transaction [SPR-2022] #6715

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions