软件事务内存+春天
是否可以将 Spring 与软件事务内存集成,以便我可以在抛出异常的方法上一起回滚所有对象和数据库事务。我需要 Spring+Deuce STM 或 Spring+Multiverse STM 的可能性。我的最终目标是在抛出异常的方法上回滚对象状态和数据库状态。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前,Multiverse 不直接支持这种集成,但这是一个有趣的功能。将与作者交谈,看看是否有任何东西可以让我们做到这一点,或者在我们正在开发的功能集中优先考虑这一点..
思考很久...................... ......................................
执行此操作的一种圆形方法是在 STM 中的事务上注册 PostEvent 侦听器并滚动如果 STM 事务失败,则返回 DB 事务。也许这可能会有所帮助:)
PS 您尝试使用哪个版本的 Multiverse stm?
——赛
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