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 write something in the configuration file. My code is very simple:
@Service("wsOrderCreationService")
public class WsOrderCreationServiceImpl implements WsOrderCreationService {
...
@Retryable(Exception.class)
private void saveLedger(OrderSkuLedger orderSkuLedger)
{
orderSkuLedgerService.save(orderSkuLedger);
}
}