Author |
Message
|
masteringmq |
Posted: Tue Mar 03, 2009 2:02 am Post subject: SYNCPOINT |
|
|
Master
Joined: 20 Oct 2008 Posts: 200
|
When an application uses a syncpoint then MQPUT or MQGET is contained within a unit of work.
For example, when an application puts a message into a queue and if it encounters any problem the application will roll out and remove the message from the queue. If the application does not encounter any problem then it will commit to add the message into the queue. Also when an application gets a message from a queue and if it encounters any problem the application will roll out and restore the message back to the queue. If the application does not encounter any problem then it will commit to remove the message from the queue.
MQPUT is a UOW and MQGET is a UOW. They do not function as a single unit of work but rather as a separate single unit of work.
Is this correct?. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 03, 2009 2:13 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What do your own experiments show?
What does the documentation say?
Where do you create a unit of work, and where do you end it? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 03, 2009 2:23 am Post subject: Re: SYNCPOINT |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
masteringmq wrote: |
Is this correct?. |
In some circumstances. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
masteringmq |
Posted: Tue Mar 03, 2009 5:06 am Post subject: |
|
|
Master
Joined: 20 Oct 2008 Posts: 200
|
Im purely handling the middleware. That is why im trying to understand what the application team is telling me. . I understand that the unit of work is completed when the application commits. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 03, 2009 5:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
masteringmq wrote: |
I understand that the unit of work is completed when the application commits. |
Then why post?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Pats21 |
Posted: Tue Mar 03, 2009 6:17 am Post subject: |
|
|
Disciple
Joined: 08 Sep 2006 Posts: 154
|
Well according to me Unit of Work is a set of transactions that you perform between the begining and the end of sync points.
I guess the begining of a UOW start with MQBEGIN and ends at MQCMIT or MQBACK.
So if MQCMIT is executed, whatever steps you have executed starting from MQBEGIN till MQCMIT will be commited. Similar is the case with MQBACK.
So you can basically include your MQPUT or MQGET between them.
Hope this is helpful. |
|
Back to top |
|
 |
|