ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » mqseries + MTS

Post new topic  Reply to topic
 mqseries + MTS « View previous topic :: View next topic » 
Author Message
mar
PostPosted: Wed May 04, 2005 5:20 am    Post subject: mqseries + MTS Reply with quote

Apprentice

Joined: 18 Oct 2004
Posts: 26

Hi. Could anyone please help me on this:
I have a COM+ component which gets the messages of a queue in a loop, it processes every ot them and commits until it finds some problem where it rollbacks and ends.
As much I know, MTS every time it commits, it transfers the checkpoint so if it rollbacks, it will rollback only after the time of the last commit. What I see here is that when I rollback, it rollbacks all the previous messages of the queue without considering the commits that took place.
I use syncpoint option in Get options and contextutil.Setcomplete to commit according to theory.
Please help.
Thanks in advance.
Back to top
View user's profile Send private message
OddDuck
PostPosted: Fri May 06, 2005 11:44 am    Post subject: Reply with quote

Newbie

Joined: 09 Mar 2005
Posts: 2

I'm not sure that MQ participates in a COM+ transaction. Your scenario seems to lend credence to it not participating. You might want to try Qmgr.Commit after you have finished processing each message. It really depends on what the unit of work is and where you need to rollback to in the event of a problem.

Perhaps someone else out there knows for sure.

I thought I was the only person in the world doing COM+ and MQ. Proven wrong again.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri May 06, 2005 12:31 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

MQ works with MTS only if you are using the .NET interface....

Back to top
View user's profile Send private message Send e-mail
mar
PostPosted: Mon May 09, 2005 12:39 am    Post subject: Reply with quote

Apprentice

Joined: 18 Oct 2004
Posts: 26

Hi. Thanks for answering me.

I am using COM+ components written in VB.NET.

I cannot use local transactions by using qmgr.commit / qmgr.Backout because I have MTS controlling the transactions.

Can anyone please help?
Thanks in advance.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon May 09, 2005 12:11 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Read the .NET manual. It should explain how to coordinate a transaction through MTS. You might of course have additional problems with security and username running the com+ component...(think impersonation)...

Back to top
View user's profile Send private message Send e-mail
mar
PostPosted: Mon May 09, 2005 11:33 pm    Post subject: Reply with quote

Apprentice

Joined: 18 Oct 2004
Posts: 26

Thanks for replying me.

I don't have problems with security on COM. I can call the components without any access denied errors. My problem is that although I commit on every message when I rollback all the messages are rollbacked. (pls read description in my fisrt message).

You are refering to a .NET maual. The one I have does not mention anything on mqseries + MTS. What is the title of the manual you are refering to?

Thanks in advance.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Tue May 10, 2005 5:13 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

I believe he means the IBM Using .Net manual (GC34-6328-02) but there is also a red book that is pretty useful WebSphere MQ Solutions in a Microsoft .Net Environment (SG24-7012-00)

Hope this helps.
Back to top
View user's profile Send private message
JohnGee
PostPosted: Fri May 20, 2005 1:17 pm    Post subject: Reply with quote

Newbie

Joined: 07 Apr 2005
Posts: 8

Any progress??? Better late then never, but here is what I can add. WebsphereMQ uses an XA compliant module to work with MTS/COM+. Though your app needs to run on the server or a transactional client (both cost the same for some reason) in order to join the transaction. It seems your MQ work was able to join the transaction, but didn't really play nicely in the end. Did you know you need to register the MQ XA module on the 2003 server? Look at this: http://support.microsoft.com/?id=817066

I have seen MQ work commit and rollback with COM+ transactions.
Back to top
View user's profile Send private message
kimmyj
PostPosted: Wed Jun 15, 2005 9:42 am    Post subject: Reply with quote

Novice

Joined: 26 Jun 2003
Posts: 19
Location: UK

So does this XA stuff also work with the Biztalk Adapter for MQ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » mqseries + MTS
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.