|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Reading and Removing Messages based on messages processed |
« View previous topic :: View next topic » |
Author |
Message
|
bruce2359 |
Posted: Thu Feb 10, 2011 4:17 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
MQSeries.net wrote:
Quote: |
Let me put my question in different way, I need to read a message, process it without saving anywhere. If succeeds, remove from queue otherwise keep it on queue. |
Yes, this is the exact purpose of getting a message MQGMO_SYNCPOINT.
A message read in syncpoint will not be visible to another application, but remains in the queue - within an incomplete unit of work..
In syncpoint (another name for Unit of Work), if your business process succeeds, issue the MQCMIT call to cause the message to be deleted from the queue. If your business process fails, issue the MQBACK call to cause the message to be restored (and visible) to the queue.
A DB update and an MQ call can be in the same unit of work.
This is all well documented in the WMQ Application Programming Guide and WMQ Application Programming Reference. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
reg.2008 |
Posted: Wed May 11, 2011 7:35 am Post subject: Any .net implementation example |
|
|
Newbie
Joined: 09 Feb 2011 Posts: 7
|
Hi, I'm kind of convinced after researching different options. I would like to use SyncPoint, MQCmit and MQBACK.
Looking for any resource where i can get .Net example of implementing syncpoint. I came across to different examples of different languages but not in .Net.
Any help would be much appreciated. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 11, 2011 9:39 am Post subject: Re: Any .net implementation example |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
reg.2008 wrote: |
Hi, I'm kind of convinced after researching different options. I would like to use SyncPoint, MQCmit and MQBACK.
Looking for any resource where i can get .Net example of implementing syncpoint. I came across to different examples of different languages but not in .Net.
Any help would be much appreciated. |
Read up in the .NET manual the chapter about transactions.
You probably will need to run the distributed transaction manager from MicroSoft...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
reg.2008 |
Posted: Wed May 11, 2011 11:57 am Post subject: I think you are not getting what am i trying to get |
|
|
Newbie
Joined: 09 Feb 2011 Posts: 7
|
Hi I'm not talking about .net transaction manager here. IBM Queue has .net interface (dll's) to collaborate with queue's. Need that sample code in any .net language. I got one reference from stack overflow web site - http://www.redbooks.ibm.com/redbooks/pdfs/sg247012.pdf
Hope this will help others too. I won't mind if anybody else want to share other resource links or samples  |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 11, 2011 8:48 pm Post subject: Re: I think you are not getting what am i trying to get |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
reg.2008 wrote: |
Hi I'm not talking about .net transaction manager here. IBM Queue has .net interface (dll's) to collaborate with queue's. Need that sample code in any .net language. I got one reference from stack overflow web site - http://www.redbooks.ibm.com/redbooks/pdfs/sg247012.pdf
Hope this will help others too. I won't mind if anybody else want to share other resource links or samples  |
The link you referenced is quite old (MQ V 5.3 ) however you mean to tell me that you do not care about chapter 13.2 of the pdf that specifically addresses distributed transactions in the .NET environment? It talks about the .net transaction management as done by COM and MSTC...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
exerk |
Posted: Wed May 11, 2011 11:37 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
There are sample programmes, and their source code, within the tools directory of the WMQ install (if you elected to install them). They give basic PUT/GET samples (plus others) and with the Info Centre and other sources it should not be too difficult to strap in the additional calls. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|