|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
local and global unit of work |
« View previous topic :: View next topic » |
Author |
Message
|
ramnagab |
Posted: Wed Nov 03, 2004 6:24 am Post subject: local and global unit of work |
|
|
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 |
|
 |
bower5932 |
Posted: Wed Nov 03, 2004 6:54 am Post subject: |
|
|
 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 |
|
 |
ramnagab |
Posted: Wed Nov 03, 2004 11:21 am Post subject: MQBEGIN() |
|
|
Apprentice
Joined: 14 Sep 2004 Posts: 46
|
Can I use MQBEGIN() in the local unit of work ? |
|
Back to top |
|
 |
EddieA |
Posted: Wed Nov 03, 2004 3:39 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|