Re: [Resteasy-users] Resetting connection?

2013-10-31 Thread John D. Ament
I wanted to circle back to this. I use this to generate a stub: String contextUrl = co.getValue(); ClientConnectionManager cm = new ThreadSafeClientConnManager(); HttpClient httpClient = new DefaultHttpClient(cm); ClientExecutor executor = new ApacheHttpClient4Executor(htt

Re: [Resteasy-users] Resetting connection?

2013-10-16 Thread Bill Burke
You should be calling ClientResponse.releaseConnection() after you are done with the ClientResponse. Resteasy should automatically clean up the connection, but this only happens on a GC. In JAX-RS 2.0 you are also required to call Response.close(). On 10/15/2013 5:15 PM, John D. Ament wrote: >