Author |
Message |
Topic: MQQueueManager disposal rollsback received messages |
costasz
Replies: 4 Views: 17401
|
Forum: Multiphase Commit Posted: Fri Nov 28, 2008 6:27 am Subject: scope.Complete() is an explicit commit thru DTC. |
BTW, I found the issue. I needed to call MQQueueManager.Disconnect();
before it went out of scope and got garbage collected. Sounds like a bug to me. |
Topic: MQQueueManager rolls back on dispose |
costasz
Replies: 1 Views: 5176
|
Forum: IBM MQ API Support Posted: Wed Nov 26, 2008 12:15 pm Subject: MQQueueManager rolls back on dispose |
Sorry for the double post, this post got no attention on the multiphase commit forum.
To summarize, when disposed, the MQQueueManager rollsback transactions that were previously completed using sco ... |
Topic: MQQueueManager disposal rollsback received messages |
costasz
Replies: 4 Views: 17401
|
Forum: Multiphase Commit Posted: Tue Nov 25, 2008 12:43 pm Subject: MQQueueManager disposal rollsback received messages |
Sample code
The 2nd line causes any received messages to reappear on queue
queueManager.Close();
}
The close bracket basically closes this using block ... |
Topic: Failed .Net/MQ/SqlSrvr05 Put in TransactionScope=no rollbck? |
costasz
Replies: 30 Views: 54616
|
Forum: Multiphase Commit Posted: Mon Apr 07, 2008 10:44 am Subject: I was told that the following code would start a COM+ contex |
using(TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, options, EnterpriseServicesInteropOption.Full) )
{ |
Topic: Failed .Net/MQ/SqlSrvr05 Put in TransactionScope=no rollbck? |
costasz
Replies: 30 Views: 54616
|
Forum: Multiphase Commit Posted: Fri Apr 04, 2008 6:00 am Subject: Re: Two phase commit is still a problem |
I was thinking of MQC.TRANSPORT_PROPERTY in MQEnviroment.properties.
It's inferred from more than that. There's a table in the manual (I just looked it up).
I added that property to the MQEn ... |
Topic: Failed .Net/MQ/SqlSrvr05 Put in TransactionScope=no rollbck? |
costasz
Replies: 30 Views: 54616
|
Forum: Multiphase Commit Posted: Fri Apr 04, 2008 5:42 am Subject: Re: Two phase commit is still a problem |
I was thinking of MQC.TRANSPORT_PROPERTY in MQEnviroment.properties.
It's inferred from more than that. There's a table in the manual (I just looked it up).
Thanks, I'll look it up |
Topic: Failed .Net/MQ/SqlSrvr05 Put in TransactionScope=no rollbck? |
costasz
Replies: 30 Views: 54616
|
Forum: Multiphase Commit Posted: Thu Apr 03, 2008 2:08 pm Subject: Re: Two phase commit is still a problem |
Once I nulled those properties out, it connected without having specified a channel or hostname so it had to have used a local binding, don't you think? If not, I'll change the transport type through ... |
Topic: Failed .Net/MQ/SqlSrvr05 Put in TransactionScope=no rollbck? |
costasz
Replies: 30 Views: 54616
|
Forum: Multiphase Commit Posted: Thu Apr 03, 2008 1:41 pm Subject: Re: Two phase commit is still a problem |
3) The process connects to the queuemanager through local binding (used MQEnvironment to make that work by setting channel name and hostname to null).
IIRC you still need to change the trasnport ... |
Topic: Failed .Net/MQ/SqlSrvr05 Put in TransactionScope=no rollbck? |
costasz
Replies: 30 Views: 54616
|
Forum: Multiphase Commit Posted: Thu Apr 03, 2008 10:36 am Subject: Two phase commit is still a problem |
MQ is not enlisting in the DTC transaction. This works fine on a standalone server. On this cluster it does not.
Issues addressed:
1) MQ and IIS are now in the same Cluster Group.
2) IIS worker pro ... |
Topic: Failed .Net/MQ/SqlSrvr05 Put in TransactionScope=no rollbck? |
costasz
Replies: 30 Views: 54616
|
Forum: Multiphase Commit Posted: Wed Apr 02, 2008 10:20 am Subject: Changed our Code to use MQEnvironment and we connected |
In server binding mode by setting the Hostname and channel to null. Out two-way phase commit transactions still don't work. We checked and the DTC entries are set in the registry.
Thanks |
Topic: Failed .Net/MQ/SqlSrvr05 Put in TransactionScope=no rollbck? |
costasz
Replies: 30 Views: 54616
|
Forum: Multiphase Commit Posted: Wed Apr 02, 2008 8:15 am Subject: Re: The MQ Queue Manager and the .Net App were on the same s |
I am reading WebSphere "MQ Solutions in a Microsoft .NET Environment". Can u point me to the relevant info in there?
No, I'm referring to "Using .NET", the actual manual for t ... |
Topic: Failed .Net/MQ/SqlSrvr05 Put in TransactionScope=no rollbck? |
costasz
Replies: 30 Views: 54616
|
Forum: Multiphase Commit Posted: Wed Apr 02, 2008 6:10 am Subject: Re: The MQ Queue Manager and the .Net App were on the same s |
Transport type? I don't know how to do that.
Look it up. The .NET manual describes the 3 kinds of connection supported.
Even though I am using the local one I get an error 2277.
Which (as I'm ... |
Topic: Failed .Net/MQ/SqlSrvr05 Put in TransactionScope=no rollbck? |
costasz
Replies: 30 Views: 54616
|
Forum: Multiphase Commit Posted: Wed Apr 02, 2008 5:32 am Subject: Please elaborate. |
oh, and of course recompile linking with the right libraries (server instead of client)...
Our .Net apps that use MQ have references to only 2 assemblies.
amqmdnet.dll and amqmdxcs.dll |
Topic: Failed .Net/MQ/SqlSrvr05 Put in TransactionScope=no rollbck? |
costasz
Replies: 30 Views: 54616
|
Forum: Multiphase Commit Posted: Wed Apr 02, 2008 5:30 am Subject: Re: The MQ Queue Manager and the .Net App were on the same s |
Really? I'm typically the 1st person to do Windoze down, but I do wonder what's preventing this. I mean, a queue manager in a WinCluster is just a queue manager, and with a bindings connection you don ... |
Topic: Failed .Net/MQ/SqlSrvr05 Put in TransactionScope=no rollbck? |
costasz
Replies: 30 Views: 54616
|
Forum: Multiphase Commit Posted: Tue Apr 01, 2008 12:45 pm Subject: Re: The MQ Queue Manager and the .Net App were on the same s |
Anything else that I need to do? The sending app connects to the queuemanager with a a channel and an address but they are on the same physical box.
Yes.
You can't use a channel and an address, ... |