Slind
Slind

Reputation: 113

How does MSDTC work in Websphere Mq v.7.5.2.?

I am upgrading a Websphere v.7.0 C# client to v.7.5.2 primarily to take advantage of the new MSDTC feature. However my initial PoC'ing has revealed a number of issues, one of which is how transactions are committed and rolled back.

In v.7.0 commits and rollbacks was done synchronously, however v.7.5.2 using MSDTC, commits and rollbacks are done asynchronously.

This is a breaking change, so my question is:

  1. Is there some sort of WaitHandle so you can get, to wait for the Commit or Rollback to complete?
  2. Is there an option you can set, that will make the MSDTC commit and rollback synchrone?

Thanks Slind

Upvotes: 1

Views: 706

Answers (1)

Shashi
Shashi

Reputation: 15283

At MQ v7.5, if you are using Global Transactions (XA), then the transactions are coordinated by MSDTC which decides when to commit or rollback a transaction. You may look at this link that explains behavior further.

Transaction completed event can be handled in your application to know when a transaction is completed. Please see this link for an example.

Upvotes: 1

Related Questions