Questions tagged [spring-retry]

Spring Retry provides an abstraction around retrying failed operations, with an emphasis on declarative control of the process and policy-based behaviour that is easy to extend and customize.

The Spring Retry project is refactored from Spring Batch's support for retrying operations as of Spring Batch 2.2.0. It is used in several Spring projects.

See also

469 questions
0
votes
1 answer

Spring Batch repeats step with chunk size 1 even after success

Summary: Job restarts/retries even when reader/processor/writer succeed. My step is defined as follows: return stepBuilder.get("job.transaction-export.step1") // .startLimit(stepStartLimit) .
arnaldop
  • 333
  • 6
  • 17
0
votes
0 answers

How to substitute the Spring Retryable annotation by specification in a configuration file?

I had success in implementing @Retryable annotation for my code. However, for compatibility I needed to return to the version of 1.03 for spring-retry. As I looked at the jar spring-retry-1.0.3.RELEASE.jar there is no annotations, so I need to…
Alex
  • 7,007
  • 18
  • 69
  • 114
0
votes
1 answer

Spring Retry Not working

I am trying to setup a very simple test to see if I can get Springs Retry API working but it doesn't seem to be working as expected. Below is my code / configuration. I am using Spring 3.0 Spring Retry Version defined in POM.xml
Jason
  • 1,371
  • 4
  • 21
  • 44
0
votes
1 answer

How to set maximum retry attempts for AmqpConnection

Is it possible to set retry attempts for rabbitmq connection? If possible how to do that? I am currently connecting to AMQP (RabbitMQ) from my application, if rabbitmq is down then AmqpConnectionException is thrown and it retries 10 times to…
Vishwa
  • 607
  • 2
  • 11
  • 21
0
votes
1 answer

Spring Retry is not allowing to stop the TC server Normally

I am using spring retry template, when there is retry process is running, I am not able to stop the server. If I am trying to stop the server, It is saying tc server is not responding, would you like to terminate the server. I followed the following…
Sireesh Vattikuti
  • 1,180
  • 1
  • 9
  • 21
0
votes
1 answer

Spring Integration JMS Issue

We are using Spring Integration to consume messages from a queue and the requirement is to send the message to Error queue if there is any issue in the processing of the message consumed. Flow works fine but one issue we see is when there is any…
Ashish
  • 85
  • 1
  • 1
  • 11
0
votes
0 answers

Spring batch - JSR 352 retry fails when skip exception in thrown in writer

I am trying to investigate what happens when an exception is throw in the writer. As per theory I was expecting a roll-back to occur and then retry the chunk setting commit size as 1. but this is not happening and i am receiving the following…
Ravikiran butti
  • 1,668
  • 2
  • 11
  • 18
0
votes
1 answer

Issue in configuring retry capability with Spring AMQP using retry-template

I'm trying to configure retry capability in my Spring Integration project where I'm trying to connect to Rabbit servers following the details provided here in this article section 3.3.1. But looks like the retry policy isnt kicking in. This is what…
ignatan
  • 101
  • 1
  • 3
  • 14
0
votes
1 answer

RabbitMQ & Spring amqp retry without blocking consumers

I'm working with RabbitMQ and Spring amqp where I would prefer not to lose messages. By using exponential back off policy for retrying, I'm potentially blocking my consumers which they could be working off on messages they could handle. I'd like to…
abhi
  • 41
  • 3
0
votes
2 answers

Spring Integration & Retry: Do I need a separate retry bean for each service-activator?

I've got a spring integration pipeline and I've got a number of different service activators that I want to enable retry for. I want to use the same retry policy (i.e. the number of retries, back-off policy, etc). Can I just have one bean that…
Alan Ludwig
  • 67
  • 1
  • 11
-1
votes
1 answer

org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor.invoke(AnnotationAwareRetryOperationsInterceptor called, but no retry

I have a @Retryable(maxAttempts = 3, value=Exception.class, backoff = @Backoff(delay = 500)) set up over the method, method is called from another class, so ApsectJ works here properly, and @EnableRetry is set. So, you can see in the stack trace…
Eljah
  • 4,188
  • 4
  • 41
  • 85
-1
votes
1 answer

How do I perform retry based on HTTP response code in Springboot

@Retryable(value = ABCDException.class, maxAttemptsExpression = 3, backoff = @Backoff(delayExpression = "#{${application.delay}}")) public String postABCDrequest(ABCDrequest abcdRequest) throws ABCDException { try { …
-1
votes
1 answer

Spring Batch retry doesn't work in Java if the app implements the CommandLineRunner

Taking as reference Retry not working with Spring Batch with Java Config I checked in the code of the following spring batch reader retry example https://github.com/atulkulkarni18/spring-batch-reader-retry and the retry functionality works as…
-1
votes
1 answer

Spring re-try withing future tasks not working

I have a spring-boot application which which needs to call external APIs. If there are 'n' external calls, 'n' future tasks will be created and rest calls will be made. Problem here is if any of the rest call fails with exception, i need to retry…
-1
votes
1 answer

template.setRetryPolicy(policy) is throwing syntax error

In my application I am calling web services. So I thought to implement Spring Retry mechanism to make processing more robust and less prone to failure. This is the first time I am using Spring Retry I created a Application service class in which I…
jaswanth
  • 1
  • 5
1 2 3
31
32