Announcement Announcement Module
Collapse
No announcement yet.
How to manage ehcache local transactions with a JpaTransationManager? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to manage ehcache local transactions with a JpaTransationManager?

    I've recently encountered an ehcache problem while implementing Spring security ACL.

    It made me realize that a transaction rollback doesn't affect the cache: cache inserts that have occurred during the transaction aren't going to be automatically rollbacked.

    This seemed natural enough to me that I took for granted it was the case.

    Unfortunately, it's not.
    Enter the ehcache local transactions, available since v2.4.
    Ehcache now support local transaction management trough their TransactionController.

    Unless I'm mistaken, enabling local transaction on ehcache won't be of any help, Spring doesn't seem to have any helper to manage the ehcache local transactions through the TransactionController.

    Thus my simple question: is Spring going to implement anything to support ehcache local transactions?

    This appears to be the proper way to manage ehcache local transactions, but experience sharing regarding this problem would be welcome off course.

    Cheers
Working...
X