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 » WebSphere Message Broker (ACE) Support » Way to handle transactionality with no duplication

Post new topic  Reply to topic
 Way to handle transactionality with no duplication « View previous topic :: View next topic » 
Author Message
umaneesh
PostPosted: Thu Oct 08, 2009 7:59 am    Post subject: Way to handle transactionality with no duplication Reply with quote

Novice

Joined: 13 Apr 2009
Posts: 24

Hi,

My msgflow is to receive one msg and send it [As Is] to different destination queues. The requirement is that, if one destination queue has some issue, the transaction should not get rolled back for all destination queues. Typically I send msgs to queue by an mqoutput node. I can manually set transcation as "No" in node properties, which leads to a duplication of msgs while my error handler handles[during retry] it.

Is there a way to make all the mqoutput nodes independent and also avoid duplication while retry?

Pub sub is one option.. Is there any other direct approach?

Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Oct 08, 2009 8:04 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You will have to keep track of which ones succeed, and then check before sending out again during retry.
Back to top
View user's profile Send private message
umaneesh
PostPosted: Thu Oct 08, 2009 8:36 am    Post subject: Way to handle transactionality with no duplication Reply with quote

Novice

Joined: 13 Apr 2009
Posts: 24

mqjeff wrote:
You will have to keep track of which ones succeed, and then check before sending out again during retry.


Thanks Jeff

But how to track the succeded one? On the other way, I can always track the failed one by taking queue info from error handler. Then make a compute node to route only to the failed one for retry.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Oct 08, 2009 9:38 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

IF there is no exception in the MQOutputNode then in a compute node after the MQOutputNode you can update a variable in the Environment Folder with the status. This will all you to track which queues have problems.

If there is a problem then an exception will be thrown and you can handle it in nodes/code wirted to a catch terminal.

I'd probably put a try catch node before I distribute the messages. This would all you to write dedicated exception handling code. It is relatively easy to extract the Queue Name that caused the problem from the exceptionlist.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
umaneesh
PostPosted: Fri Oct 09, 2009 12:57 pm    Post subject: Way to handle transactionality with no duplication Reply with quote

Novice

Joined: 13 Apr 2009
Posts: 24

Thanks Jeff L, and Davies.. I have designed for two queues by extracting queue names in excpn list and by backoutCount/MQRC resending msgs to respective failed queue.

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Way to handle transactionality with no duplication
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.