|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Get message under syncpoint |
« View previous topic :: View next topic » |
Author |
Message
|
Priya |
Posted: Sat Mar 23, 2002 2:05 pm Post subject: |
|
|
Apprentice
Joined: 20 Mar 2002 Posts: 26
|
Hi,
When does the situation come to make Get message call under syncpoint?
Thanks
Priya |
|
Back to top |
|
 |
mqonnet |
Posted: Sun Mar 24, 2002 8:35 pm Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
When does the situation come to make Get message call under syncpoint?
Syncpoint again does not have much significance, in my opinion, for a Get call, in isolation(meaning, just a get). Reason, the very purpose of having a UOW(unit of work).
Transactions are used to assure delivery/retrieval of messages. And this has to be done in conjunction. All alone, still, Put does have significance. Because we want the message to be either put on the queue or completely rolled back. If we take both put and get within a UOW, it sure does make lot of sense. Because you want to maintain integrity within the UOW, probably because you want to process a specific message. But coming to the point of a UOW just for a get does not sound of any use. Other than assuring that the message is GOT for sure or rolled back. Same case as PUT.
In short, UOW/Syncpointing is just a mechanism with which one could safely put/get a message or completely roll back. Depends on usage in your own app. More of a design issue.
Cheers.
Kumar
_________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
Back to top |
|
 |
bigdavem |
Posted: Sun Mar 24, 2002 9:33 pm Post subject: |
|
|
 Acolyte
Joined: 16 Sep 2001 Posts: 69 Location: Sydney, Australia
|
I have an application which does some heavy duty processing running MSWord. Word isn't very stable under duress, so it crashes from time to time. I use get under syncpoint control to ensure that my message will be returned to the queue if Word randomly crashes, so that I can just restart my app and not have to worry about losing my message.
Just one real-life example. |
|
Back to top |
|
 |
bigdavem |
Posted: Sun Mar 24, 2002 9:33 pm Post subject: |
|
|
 Acolyte
Joined: 16 Sep 2001 Posts: 69 Location: Sydney, Australia
|
[ This Message was edited by: bigdavem on 2002-03-25 15:56 ] |
|
Back to top |
|
 |
zpat |
Posted: Mon Mar 25, 2002 12:13 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
You might want to coordinate a MQGET with a database INSERT using XA so that the data is either on the queue or in the database, never lost and never duplicated.
Without XA coordination, you can still use syncpoint to reduce the "window" for data loss to a minimum. I use it with a Lotus Notes program to convert MQ to Emails and want to delay committing the MQGET until the EMail has been stored successfully. |
|
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
|
|
|
|