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 » General IBM MQ Support » Unit Of Work / Sync Point

Post new topic  Reply to topic
 Unit Of Work / Sync Point « View previous topic :: View next topic » 
Author Message
techno
PostPosted: Thu Jul 10, 2003 1:55 pm    Post subject: Unit Of Work / Sync Point Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

May I know what is the distinction between UnitOfWork and SyncPoint. To me, they are the same. Am I missing something.
When to use MQBEGIN/MQENd and when to use SYNCPOINT option inside Put/Get options. I am confused. Please clear me.

Thanks.
Back to top
View user's profile Send private message
techno
PostPosted: Thu Jul 10, 2003 1:56 pm    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

Not MQEnd, it is MQCOMMIT.
Back to top
View user's profile Send private message
mqonnet
PostPosted: Thu Jul 10, 2003 3:49 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Unit of work(UOW) is assumed whenever you use Syncpoint in your put/get options. Depending upon platforms you have to specify the respective verbs to start a transaction(UOW). IN general you start a transaction using MQBGIN, put/get messages using Syncpoint and then commit the Current UOW using MQCMIT.

Hope this clarifies your doubts.

Cheers
Kumar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kirani
PostPosted: Thu Jul 10, 2003 5:26 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Please note that the MQBEGIN call begins a unit of work that is coordinated by the queue manager, and that may involve external resource managers. For normal UOW you dont make MQBEGIN call.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
techno
PostPosted: Fri Jul 11, 2003 2:58 pm    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

I am sorry. I am still not clear. Di I have to use SYNCPOINT options in MQGMO and MQPMO always, along with MQBEGIN/MQCOMMIT?

Under 13th chapter of Application Programming Guide, v5.3, they are mentioned differently.

Can I realte this way:

In JMS:
Session's start transaction and commit
and QMgrs's start transaction and commit

I am still not clear.....
Back to top
View user's profile Send private message
mqonnet
PostPosted: Sat Jul 12, 2003 4:18 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

SYNCPOINT is used at all times if you wish to get/put a message within a UOW. You could use MQBEGIN call to start a QM co-ordinated UOW that may involve an external resource managers, as Kiran already pointed out. If you do not specify MQBEGIN, then a Local UOW is started.

In both cases you MUST have MQCMIT call alongwith a syncpoint in either a get or a put call.

Cheers
Kumar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mgrabinski
PostPosted: Sun Jul 13, 2003 9:37 pm    Post subject: Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

If you use MQPMO_SYNCPOINT or MQGMO_SYNCPOINT, you start a UOW, it must be followed by an MQCMIT or MQBACK call. Until COMMIT, your messages cannot be read by another applications.
If you don't use these options, your messages are put (get) to (from) the queue instantly.
_________________
Marcin Grabinski <><
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 » General IBM MQ Support » Unit Of Work / Sync Point
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.