MS DTC 或 TransactionScope 最大超时

发布于 2024-10-04 09:51:23 字数 177 浏览 0 评论 0原文

我有一个关于分布式事务超时的问题。

例如,我的 TransactionScope 超时 = 10 分钟(最大值,无需编辑 machine.config)。 MS DTC 的超时时间(正如我在 ComponentServices-MyComputer 属性中看到的)是 60 秒。

有谁知道,超时时间是多少?

I have a question about timeout for distibuted transactions.

Foe example, I have timeout for TransactionScope = 10 minutes (max, without editing machine.config).
Also timeout for MS DTC is (as i see in ComponentServices-MyComputer properties) is 60 seconds.

Dows anyone know, what timeout will be taken?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冬天的雪花 2024-10-11 09:51:23

这取决于:事务范围可以是 DTC 事务,然后您将获得 60 秒超时,或者它可能会实现为 SQL 本地事务(例如),然后 DTC 不属于该情况,因此您将获得超时指定的。

事务的实现取决于作为事务一部分访问的资源,以及传递给 TransactionScope 的标志(例如与 COM+ 完全集成)

that depends: the transaction scope can be a DTC transaction and then you get the 60 second timeout, or it might get implemented as a SQL local transaction (for example) and then DTC isn't part of the picture so you get the timeout you specified.

the implementation of the transaction depends on the resources you access as part of the transaction, and also the flags you pass to the TransactionScope (Full integration with COM+ for instance)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文