cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop auto retry of message if we used JMS queue in CPI

Nikhil_Gursal
Participant
0 Kudos

Hi Community,

I understand using JMS adapter we can store message in queue , and if target system is not reachable then it will keep trying to reprocess message until target system is reachable.

Can't this be stopped after particular number of retries and later processed by manually from queue ?

If it tries continuously to reprocess , will it not affect on system performance ?

Thanks,

Nikhil

Accepted Solutions (1)

Accepted Solutions (1)

sunny_kapoor
Advisor
Advisor
0 Kudos

Hi nikhil.85,

No, in JMS reprocessing can't be stopped after particular number of retries.It will retry indefinitely as per the configuration and only way to stop is to remove the message from the JMS queue after certain number of retries as mentioned in the other answer.If you do no like to remove it from the queue, then keep the big number in maxium retry interval and tick the exponential backoff so that retry happend after long delays and in the meantime if the target system is up, manually retrigger it from the queue.Regards,Sunny
Nikhil_Gursal
Participant
0 Kudos

Thanks sunny.kapoor2 for clarifying it.

Can you please shade some light on , the second part of question.

"If it tries continuously to reprocess , will it not affect on system performance ?" if the connections is not up for long time ?

Thanks,

Nikhil

sunny_kapoor
Advisor
Advisor

Hi nikhil.85

"If it tries continuously, it may impact the system depending on the integration interface design"

As I have already mentioned, take care of the following configurations of JMS Sender Adapter for controlling the retries and preventing the frequent retries in a short span of time:

1. Retry interval,

2. Maxium retry interval

3, Exponential backoff

Keep the big number in maxium retry interval and tick the exponential backoff so that retry happend after long delays and in the meantime if the target system is up, manually retrigger it from the queue.

Regards,Sunny

Nikhil_Gursal
Participant
0 Kudos

Thank you sunny.kapoor2 ,it helps a lot.

Answers (1)

Answers (1)

PriyankaChak
Active Contributor

Hi Nikhil,

you can keep count of JMS retries using header SAPJMSRetries and stop retry once the count is reached.

You can refer to the below blog post.

https://blogs.sap.com/2017/06/19/cloud-integration-configure-asynchronous-messaging-with-retry-using...

Regards,

Priyanka

Nikhil_Gursal
Participant
0 Kudos

Hi Priyanka,

Thanks for response , I have already used SAPJMSRetries , in exception sub process referring this This blog . It retries 5 times as per configuration and don't trigger next steps in exception sub process after RetryConfigruation process call (as expected ) and after 5 retires it triggers alert as per configuration which is fine , but it tries keep retrying until connection is not reachable or message is not completed successful.any sugeestions ?