I am using below code at client side to do one way ssl 
client is calling server , it seems to be working but not stable
any suggestions for param setting especially something like
setConnectionTimeout
setAllowChunking
setReceiveTimeout
setConnection

what do those param mean and how to use them in best practise?


 org.apache.cxf.endpoint.Client client = ClientProxy.getClient(port);
        HTTPConduit conduit = (HTTPConduit) client.getConduit();
        HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
        httpClientPolicy.setConnectionTimeout(36000);
        httpClientPolicy.setAllowChunking(false);
        //default is 60000
        httpClientPolicy.setReceiveTimeout(600000);
        httpClientPolicy.setConnection(ConnectionType.KEEP_ALIVE);
        conduit.setClient(httpClientPolicy);

        TLSClientParameters tls = getTLSClientParameters(trustStorePath,
trustStorePass);

        conduit.setTlsClientParameters(tls);
        conduit.getClient().setAcceptEncoding("utf-8");
        conduit.getClient().setAccept("text/xml");



--
View this message in context: 
http://camel.465427.n5.nabble.com/suggestions-for-HTTPClientPolicy-setting-tp5765703.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to