-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Retryable not actually retrying #148
Comments
This happens while trying to weave aspects at runtime, should I weave at compile time? |
How about creating a simple sample project? It's probably something simple, but hard to diagnose without running actual code. There's nothing to stop you doing compile time weaving (or load time), but you don't have to do that to use |
Is |
I don’t remember ever doing it myself, but spring-retry is old enough that I expect I might have. How about that sample project? |
I guess at least you need an |
Just tested it with some simple XML config. |
Since I have no
@Configuration
class in my project I tried creating an empty one just with@EnableRetry
and@Configuration
but it does not make my method use@Retryable
so I have tried these two xml configurations insteadand
But again nothing will trigger my
@Retryable
method. Am I missing something? I'm using Spring 4.3.0 and I tried attaching@Retryable
to both my interface (with@Service
) and my implementation class along with@Component
Is there a way to dig deeper to see why my
@Retryable
gets skipped or whether@EnableRetry
and the xml equivalent are actually doing something? I don't see any errors in my logs. It's just that the retry does not happen regardless of whether I try to configure spring-retry with xml or using annotations.The text was updated successfully, but these errors were encountered: