Reputation: 45
Is it possible to integrate Spring with Software Transactional Memory so that I can rollback all Objects and DB transactions together on method throwing Exception. I need possibilities of Spring+Deuce STM or Spring+Multiverse STM. My ultimate goal is to rollback the Object States and DB state on a method throwing Exception.
Upvotes: 1
Views: 646
Reputation: 1248
For now Multiverse doesn't support this kind of integration directly but this is an interesting feature.. I am part of Multiverse team & will talk with the author to see if there is anything which will allow us to do this or prioritize this in feature set we are working on..
Thinking long................................................
A round about way of doing this is to register a PostEvent listener on a Transaction in STM and roll back the DB transaction if the STM transaction fails.. Probably this may help :)
P.S. Which version of Multiverse stm are you trying to use?
--Sai
Upvotes: 2