MessageQueueTransaction超时MessageQueueTransaction

2023-09-06 14:19:23 作者:龍魂大哥

我读到 MessageQueueTransaction MSDN中,但我无法找到任何超时。如果提交或中止只是从来没有被调用,会发生什么?是否有时间它是开放的,它的发布之间的交易某种超时?

I read about MessageQueueTransaction in MSDN, but I can't find anything about timeouts. What happens if the Commit or Abort just never get called ? Is there some sort of timeout for a transaction between the time it's open and it's release ?

推荐答案

这是一个内部交易所以不涉及MSDTC(它确实有超时)。 我相信,此次交易将一直存在,直到您的应用程序调用提交或中止。 如果应用程序没有调用失败或退出任何话,我希望MSMQ中止交易你。

This is an internal transaction so doesn't involve MSDTC (which does have a timeout). I believe that the transaction will exist until your application calls commit or abort. If the application fails or exits without calling either then I would expect MSMQ to abort the transaction for you.

你有一个特定的问题或只是好奇?

Do you have a specific problem or just curious?

干杯

约翰·Breakwell

Cheers

John Breakwell

相关推荐