You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Sam Adams <Sa...@playtech.com> on 2015/01/09 15:46:33 UTC
Setting Timeout on Proxy Clients
Hi,
I have a JAX-WS client in CXF created via JAXRSClientFactoryBean.create. How
can I set the connection/receive timeouts? I assume I need to get hold of
the conduit but can't work out how to.
Thanks,
Sam
RE: Setting Timeout on Proxy Clients
Posted by Andrei Shakirin <as...@talend.com>.
Hi,
You can do it:
a) through conduit configuration:
BookStore proxy = JAXRSClientFactory.create(address, configLocation, BookStore.class);
See http://svn.apache.org/repos/asf/cxf/trunk/distribution/src/main/release/samples/jax_rs/basic_https/src/main/resources/ClientConfig.xml for configuration format.
b) programmatically in conduit:
Conduit conduit = WebClient.getConfig(proxy).getConduit();
Regards,
Andrei.
From: Sam Adams [mailto:Sam.Adams@playtech.com]
Sent: Freitag, 9. Januar 2015 15:47
To: users@cxf.apache.org
Subject: Setting Timeout on Proxy Clients
Hi,
I have a JAX-WS client in CXF created via JAXRSClientFactoryBean.create. How can I set the connection/receive timeouts? I assume I need to get hold of the conduit but can't work out how to.
Thanks,
Sam