Hello,

I'm trying to set connectionTimeout and readTimeout on rs client powered by
cxf, but it didn't work,
I'm assume the properties for connectionTimeout and readTimeout is

org.apache.cxf.jaxrs.client.spec.ClientImpl#HTTP_CONNECTION_TIMEOUT_PROP
org.apache.cxf.jaxrs.client.spec.ClientImpl#HTTP_RECEIVE_TIMEOUT_PROP

here's my code, really appreciated on your help

import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;

        final Client client = ClientBuilder.newClient();
        //
per org.apache.cxf.jaxrs.client.spec.ClientImpl#HTTP_CONNECTION_TIMEOUT_PROP
        client.property("http.connection.timeout", connectTimeout);
        // per
org.apache.cxf.jaxrs.client.spec.ClientImpl#HTTP_RECEIVE_TIMEOUT_PROP
        client.property("http.receive.timeout", (int) readTimeout);



-- 
--Anfernee

Reply via email to