-
Enhancement
-
Resolution: Unresolved
-
Major
-
None
-
3.0.10.Final, 3.6.3.Final
-
Documentation (Ref Guide, User Guide, etc.)
User guide is missing description how to use Resteasy with Closeable apache httpclient.
The use case here is, that resteasy-client created with
Client client = ClientBuilder.newClient();
And this client throws TimeOutException, client is then not able to invoke any other requests to the server.
The solution can be to create own apache Closeable httpclient and pass it to ResteasyClientBuilder:
CloseableHttpClient httpClient = HttpClientBuilder.create() .setDefaultRequestConfig(reqConfig) .build(); Client client = ResteasyClientBuilder().httpEngine(new ApacheHttpClient4Engine(httpClient, true)).build(); // RESTEasy specific
This infomartion should be probably placed together within this chapter:
http://docs.jboss.org/resteasy/docs/3.0.9.Final/userguide/html_single/index.html#transport_layer
- clones
-
JBEAP-390 How to use Resteasy with Closeable apache httpclient
- Closed
- is related to
-
RESTEASY-2803 RESTEasy client should support HTTP/2
- Closed
- relates to
-
RESTEASY-1200 Resteasy uses httpclient 4.2.6 which is not in sync with httpclient 4.3.6 used in Wildfly
- Closed