Jul 13th, 2012, 01:20 AM
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.