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 » local and global unit of work

Post new topic  Reply to topic
 local and global unit of work « View previous topic :: View next topic » 
Author Message
ramnagab
PostPosted: Wed Nov 03, 2004 6:24 am    Post subject: local and global unit of work Reply with quote

Apprentice

Joined: 14 Sep 2004
Posts: 46

Hi all

1- Could you please explain for me what is the difference between the local and global unit of work ? I hope to get an example from the practical experience


2- When I suppose to use MQBEGIN() , MQCMIT() , MQBACK() methods ? are these calls used with local or global unit of work or both of them ?

Thanks
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Nov 03, 2004 6:54 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I describe the difference as:

Local unit of work: one-phase commit; only WMQ resources are involved in the unit of work. You would use MQBACK and MQCMIT to either backout or commit your unit of work. You also use the SYNCPOINT options when getting/putting messages.

Global unit of work: two-phase commit; resources of both WMQ and something else (relational DB) are involved in the unit of work. Both sets of resources have to commit or backout together. You use MQBEGIN to signal to WMQ that you are starting the unit of work.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
ramnagab
PostPosted: Wed Nov 03, 2004 11:21 am    Post subject: MQBEGIN() Reply with quote

Apprentice

Joined: 14 Sep 2004
Posts: 46

Can I use MQBEGIN() in the local unit of work ?
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Nov 03, 2004 3:39 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Yes. But it doesn't do anything, other than give you a Warning return code.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » local and global unit of work
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.