I am invoking web service in java. I have the requirement, tha if if there was error during web service invocation, the same Web service call needs to be retriggered after a certain predefined time interval for max attempts, say 5.
Is there any api in java I can use for this purpose?
Check this one http://aspects.jcabi.com/annotation-retryonfailure.html
It provides an annotation to specify the retry strategy.