The name of the "read" and "connection" timeout properties is not standardized in Java EE 7. For TomEE / CXF clients you will have to use the "CXF-proprietary" names:
import javax.ws.rs.client.Client; import javax.ws.rs.client.ClientBuilder; Client client = ClientBuilder.newClient(); client.property("http.connection.timeout", 500L); client.property("http.receive.timeout", 500L);
The name differs in Jersey (used in GlassFish / Payara), but the semantics are the same.See you at Java EE Microservices. Is Munich's airport too far? Learn from home: javaeemicro.services.
NEW online workshop: WebStandards Igniter (online)