Tuesday, September 17, 2019

maxRetryLimit - Check for Retry

The MDM CONFIGELEMENT setting /IBM/MessagingAdapter/Exception/maxRetryLimit controls the number of retries:

 

https://www.ibm.com/support/knowledgecenter/en/SSWSR9_11.6.0/com.ibm.mdmhs.dev.platform.doc/references/r_CMproperties.html

/IBM/MessagingAdapter/Exception/maxRetryLimit

·         Description: Determines how many times the Messaging Adapter attempts to reprocess a failed inbound request message by invoking DWLServiceController.

·         Default value3

·         Dynamic: true

·          

If you want to see it in action, you will have to turn on INFO level logging for

com.dwl.jmsadapter.mdb.MDBRequestReceiverBean class

 

as the logging code is below

 

                               

                        

 

if(currentRetryCount <= getMaxRetryLimit(manager.getControl()) && manager.shouldRetry(e)) {

                               

                        

 

if (logger.isInfoEnabled()) {

                                

                        

 

logger.info(ResourceBundleHelper.resolve(

                               

                        

 

ResourceBundleNames.MESSAGING_ADAPTER_STRINGS,

                               

                        

 

INFO_DWLJMSMessageProcessor_MessageRetry,

                               

                        

 

new Object[] {manager.getMessageId(), currentRetryCount}));

                               

                        

 

}

                                

                        

 

processMessage(manager, currentRetryCount);

                               

                        

 

}

                       

 

There are no such settings for the retry interval setting in MDM.  Updating the CONFIGELEMENT and using the retryErrorCodeList' seems like the only option within MDM.  You can most likely do it programmatically outside of MDM, for example like in the earlier article I sent you, Identifying database deadlocks and retrying transactions.  However, there is no other settings within MDM to control for the number of retries or a delay between retries.  

 

_______________________________________________________________________

If you received this email in error, please advise the sender (by return email or otherwise) immediately. You have consented to receive the attached electronically at the above-noted email address; please retain a copy of this confirmation for future reference.

Si vous recevez ce courriel par erreur, veuillez en aviser l'expéditeur immédiatement, par retour de courriel ou par un autre moyen. Vous avez accepté de recevoir le(s) document(s) ci-joint(s) par voie électronique à l'adresse courriel indiquée ci-dessus; veuillez conserver une copie de cette confirmation pour les fins de reference future.

No comments: