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 Discussion » Reading and Removing Messages based on messages processed

Post new topic  Reply to topic Goto page Previous  1, 2
 Reading and Removing Messages based on messages processed « View previous topic :: View next topic » 
Author Message
bruce2359
PostPosted: Thu Feb 10, 2011 4:17 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9471
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
View user's profile Send private message
reg.2008
PostPosted: Wed May 11, 2011 7:35 am    Post subject: Any .net implementation example Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed May 11, 2011 9:39 am    Post subject: Re: Any .net implementation example Reply with quote

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
View user's profile Send private message Send e-mail
reg.2008
PostPosted: Wed May 11, 2011 11:57 am    Post subject: I think you are not getting what am i trying to get Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed May 11, 2011 8:48 pm    Post subject: Re: I think you are not getting what am i trying to get Reply with quote

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
View user's profile Send private message Send e-mail
exerk
PostPosted: Wed May 11, 2011 11:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General Discussion » Reading and Removing Messages based on messages processed
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.