Search code examples
javaweb-servicesjax-ws

Retry mechanism for Web Service invocation


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?


Solution

  • Check this one http://aspects.jcabi.com/annotation-retryonfailure.html

    It provides an annotation to specify the retry strategy.