You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JDBC Message Store Needs @Transactional Annotations [INT-2568] #6547
JDBC Message Store manipulates 2 (3 in 2.2) tables. If it is invoked outside of a transaction there is a (small) chance of creating integrity problems.
Methods updating multiple tables should be annotated with @Transactional with REQUIRED propagation.
Work around is to start a transaction before invoking elements backed by a JDBC message store.
The linked issue addresses similar solution with <transactional> sub-element.
Also keep in mind: not all guys use <tx:annotation-driven/>.
And it was a reason why <transactional> sub-element appeared in the JPA module.
Maybe it will be enough if we'll say an assertError, if JdbcMessageStore operations aren't wrapped with transaction boundaries? At least that is what tells EntityManager, if Transaction isn't active...
Resolving it as "Won't Fix"
Since user may need to inject its own TX manager the new request handling advice approach solves the issue in a configurable way:
Activity
spring-operator commentedon May 18, 2012
Artem Bilan commented
The linked issue addresses similar solution with
<transactional>sub-element.Also keep in mind: not all guys use
<tx:annotation-driven/>.And it was a reason why
<transactional>sub-element appeared in the JPA module.Maybe it will be enough if we'll say an assertError, if
JdbcMessageStoreoperations aren't wrapped with transaction boundaries? At least that is what tells EntityManager, if Transaction isn't active...spring-operator commentedon Aug 7, 2012
Oleg Zhurakousky commented
PR: #571
spring-operator commentedon Aug 8, 2012
Oleg Zhurakousky commented
Resolving it as "Won't Fix"
Since user may need to inject its own TX manager the new request handling advice approach solves the issue in a configurable way: