0

I am having multiple camel routes written in Java DSL exceptions are handled using OnException.

Below are my requirements.

  1. Fetch token from cache and make http call
  2. If http call fails with invalid token then make a back end call to get new token and then make http call
  3. If http call fails with specific error then needs to handle it properly.

Issue: If http call fails with invalid token then it is making backend call to fetch the token and then calling http request using exception handling code. Now the http call failed again while calling from OnException with some other error and it is not going to OnException and giving circular error handler message.

Please help me to handle this error. Thankyou

I am using SpringBoot camel starter 3.8.0 and Java 11

Lokesh
  • 1
  • 1

0 Answers0