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 » What is the best way to do retry in WMB?

Post new topic  Reply to topic
 What is the best way to do retry in WMB? « View previous topic :: View next topic » 
Author Message
Frik
PostPosted: Mon Sep 24, 2012 3:00 am    Post subject: What is the best way to do retry in WMB? Reply with quote

Acolyte

Joined: 25 Nov 2009
Posts: 69

Hey,
I have to make some retries in my flow.
when there are over then 5 retries, there will be 'throw' statment, and the first failute handler wil write it to log.

Now I'm do it with TryCatch, when the catch is connectes to the in terminal of the try (and there is a pause of 3 seconds betwwen each).
I'm not sure this is the best way.

It looks something like this:

1. MQInput (out)-> 2. Try (out)-> 3. MQOutput -> 4. Compute (throw if fail)
2. Try (catch)-> 5. Flow thay check times and pause -> 2. Try(in)
1. MQinput (failute) -> FailureHandler.

I hope it's clear...

Can you help? how to do it propely? is there a best practice?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Sep 24, 2012 5:11 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You may prefer to manage retries via WMQ. Use the retry counter on the MQMD. You can also set 24 bytes of metadata in the Appl section of the MQMD.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Esa
PostPosted: Mon Sep 24, 2012 6:47 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

lancelotlinc wrote:
You may prefer to manage retries via WMQ. Use the retry counter on the MQMD. You can also set 24 bytes of metadata in the Appl section of the MQMD.


You mean that if you set ApplIdentityData and back out the message, the metadata is still there when you re-read the backed-out message? That was news to me.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Sep 24, 2012 7:03 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Esa wrote:
lancelotlinc wrote:
You may prefer to manage retries via WMQ. Use the retry counter on the MQMD. You can also set 24 bytes of metadata in the Appl section of the MQMD.


You mean that if you set ApplIdentityData and back out the message, the metadata is still there when you re-read the backed-out message? That was news to me.


No, if you intend to store metadata in the MQMD, then you must manually put the message to the queue.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » What is the best way to do retry in WMB?
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.