Hi, I would like to know if there is a way of retrying an endpoint automatically in WSO2 ESB.
As I could see one way of doing that is using the failover mediator with some leaf endpoints. I would like to a scenario like this: Try the endpoint and in case of a timeout, try it another two times and after a third try it would lead to a fault sequence. Using the failover mediator, it will work only if we enable the suspension of the endpoint. I would like to have it without adding suspension settings. As I could see, without the suspension settings, the failover endpoint will try the request forever until the endpoints respond correctly. Is there any way to achieve this scenario? My first idea, in case there is no OOTB solution, would be: 1. create a sequence that would have the call/send mediator. This sequence, would have a onError sequence, so in case of a timeout, we would have a condition for a retry; 2. In case of timeout, the onError would be called, and we would have a counter, in case the counter is less than 3, we would call the previous sequence, else, it would fault. Would this be a correct approach for this scenario? Thanks, -- Francisco Ribeiro *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
