You need a cxf spring configuration file (let's say http-client.xml), where you can specify HTTPClientPolicy parameters for http conduit, then set this file for cxf bc provider xbean.xml like
busCfg="http-client.xml"
Freeman
peppinolusuraio wrote:
how can I change the default http receive timeout and connection time out of
the CXF-BC ?
Can I do it in my xbean?
In CXF I would do:

// change http receive timeout and connection timeout
Client client = ClientProxy.getClient(port);
Conduit conduit = client.getConduit();
HTTPClientPolicy policy = ((HTTPConduit) conduit).getClient();
 if (policy == null) {
       policy = new HTTPClientPolicy();
      ((HTTPConduit) conduit).setClient(policy);
}
policy.setReceiveTimeout(300000000);
policy.setConnectionTimeout(300000000);

Reply via email to