In this post under Spring Retry, I will show with example how to configure MaxAttemptsRetryPolicy using RetryTemplateBuilder. Lets refresh what is MaxAttemptsRetryPolicy. MaxAttemptsRetryPolicy tells Spring retry to retry a failed operation for a fixed number of times. Now lets see how to configure using RetryTemplateBuilder. Below is the xml code for your reference XML Code…… Continue reading Configuring MaxAttemptsRetryPolicy for RetryTemplate (using RetryTemplateBuilder)
Tag: MaxAttemptsRetryPolicy
MaxAttemptsRetryPolicy Example (using xml configuration)
In this post under Spring Retry, I will talk about MaxAttemptsRetryPolicy with example. MaxAttemptsRetryPolicy allows us to configure Spring Retry to retry a failed operation for fixed number of times (including the initial attempt). Below is the xml file showing how to configure MaxAttemptsRetryPolicy XML code 1 <?xml version=”1.0″ encoding=”UTF-8″?> 2 <beans xmlns=”http://www.springframework.org/schema/beans” 3 xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”…… Continue reading MaxAttemptsRetryPolicy Example (using xml configuration)