Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top