I've been attempting to make my Spring application use Spring Retry for the past few days with no luck so far. I have an XML based config so I've tried adding
<context:annotation-config/>
<aop:aspectj-autoproxy />
<bean class="org.springframework.retry.annotation.RetryConfiguration" />
along with adding the needed dependencies and setting the function I'm using @Retryable
, this didn't work.
I've also added a component-scan in my XML for a newly created config file, to which I've added @Configuration
and @EnableRetry
. I've tried this both with an empty config file and one with a ReturnPolicy set up in it, tried both of these setups with and without Aspects instead of using @Retryable
. Neither options worked.
I'm running out of sources and ideas to explore, any help would be greatly appreciated.
Thanks!