That's it. Thanks.

On Mon, Dec 27, 2010 at 9:36 PM, Freeman Fang <[email protected]> wrote:
> Hi,
>
> You mean you want configure it using java code?
> If so, FYI, the client side code should be
>
>        Client client = org.apache.cxf.frontend.ClientProxy.getClient(port);
>        HTTPConduit http = (HTTPConduit) client.getConduit();
>        HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
>        httpClientPolicy.setConnection(ConnectionType.KEEP_ALIVE);
>        http.setClient(httpClientPolicy);
>
> The server side code should be like
>       JettyHTTPDestination httpDestination =
> (JettyHTTPDestination)endpoint.getServer().getDestination();
>        httpDestination.getServer().setHonorKeepAlive(true);
>
> Freeman
>
> On 2010-12-28, at 上午10:08, Benson Margulies wrote:
>
>> I have a problem which I suspect might be cured by use of keepalives.
>> CXF is on both ends. I'm not in an especially spring-y configuration.
>
>
> --
> Freeman Fang
>
> ------------------------
>
> FuseSource: http://fusesource.com
> blog: http://freemanfang.blogspot.com
> twitter: http://twitter.com/freemanfang
> Apache Servicemix:http://servicemix.apache.org
> Apache Cxf: http://cxf.apache.org
> Apache Karaf: http://karaf.apache.org
> Apache Felix: http://felix.apache.org
>
>

Reply via email to