非数据库事务对象??? [英] Non database transactional objects???

查看:160
本文介绍了非数据库事务对象???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序确实具有包装在传统事务中的数据库操作,但是它也具有可以对外部系统执行其他操作的对象.

我想添加到这些对象,以便它们由数据库操作所使用的同一事务对象控制.我具有这些其他对象的代码,因此可以添加到它们中,但是它们根本与数据库无关.如果需要的话,我将不得不放入代码以使它们手动撤消以前的操作.

但是,如何使它们对事务对象敏感?我有eto订阅的活动吗?我必须实现的接口?

My application does have database operations that are wrapped up in traditional transactions, but it also has objects that do other stuff with external systems.

I would like to add to these objects so that they are controlled by the same transaction object used by the database operations. I have the code for these other objects so I can add to them, but they are not at all database related. I would have to put the code in to make them manually undo thier previous actions if asked to do so.

But how do I make them sensitive to the transaction object? Are there events that I hav eto subscribe to? Interfaces that I have to implement?

How does one go about making a transactionally aware non-DB object?

推荐答案

有一个^ ]和后续技术.

干杯
Uwe
There is Microsoft Transaction Server (MTS)[^] and the successor technics.

Cheers
Uwe


这篇关于非数据库事务对象???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆