WCF remote distributed transaction based on WS-atomictransaction (Supplement)

Source: Internet
Author: User

Although wshttpbinding only supports WS-atomictransaction, I found that when I didn't configure MSDTC to support WS-AT protocols or didn't enable WS-AT protocols, the transaction can still be normally commit and rollback. At first, I did not know why. Later I checked Microsoft's related documents and found that when wshttpbinding is used to support transactions, for efficiency reasons, WCF will first use oletx transactions, instead of the WS-at protocol. Only when the oletx protocol is unavailable, for example, port 135 is not enabled, or it is interoperable with Java Web service, can WCF fully use the WS-at protocol. This is good, but sometimes we don't want to do this (such as during testing). At this time, we can modify the registry and disable automatic upgrades of transactions to oletx transactions. Specifically, add a DWORD Value named "oletxupgradeenabled" to the Registry: HKLM \ Software \ Microsoft \ wsat \ 3.0 and set the value to 0 (1 indicates enabling automatic upgrade)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.