Sergey Beryozkin wrote
> I think if you use JAXWS then you need to cast a
> proxy to CXF Client and set a feature on it
Thanks Sergey,
Took a little while to figure out how to set a feature on a client as the
features set themselves on the client instead of the client setting
features, but was pretty simple in the end:
RetryStrategy retryStrategy = new RetryStrategy();
retryStrategy.setMaxNumberOfRetries(5);
FailoverFeature failoverFeature = new FailoverFeature();
failoverFeature.setStrategy(retryStrategy);
failoverFeature.initialize(client, client.getBus());
--
View this message in context:
http://cxf.547215.n5.nabble.com/Use-RetryStrategy-programatically-tp5759944p5759962.html
Sent from the cxf-user mailing list archive at Nabble.com.