Author |
Message
|
techno |
Posted: Thu Jul 10, 2003 1:55 pm Post subject: Unit Of Work / Sync Point |
|
|
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 |
|
 |
techno |
Posted: Thu Jul 10, 2003 1:56 pm Post subject: |
|
|
Chevalier
Joined: 22 Jan 2003 Posts: 429
|
Not MQEnd, it is MQCOMMIT. |
|
Back to top |
|
 |
mqonnet |
Posted: Thu Jul 10, 2003 3:49 pm Post subject: |
|
|
 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 |
|
 |
kirani |
Posted: Thu Jul 10, 2003 5:26 pm Post subject: |
|
|
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 |
|
 |
techno |
Posted: Fri Jul 11, 2003 2:58 pm Post subject: |
|
|
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 |
|
 |
mqonnet |
Posted: Sat Jul 12, 2003 4:18 am Post subject: |
|
|
 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 |
|
 |
mgrabinski |
Posted: Sun Jul 13, 2003 9:37 pm Post subject: |
|
|
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 |
|
 |
|