Hi,

We are currently using the jax rs WebClient class to call Rest URLs from 
services we are developing. Up until now we haven't been explicitly calling 
"close" on the Response or the WebClient objects as none of the examples I have 
seen showed this but after looking more closely at the APIs I see the close() 
methods exist.

The javadoc implies close() is called on the response when you use the 
readEntity() method but should I assume that if I just checked the response 
status code and didn't consume the entity then I should do an explicit close?

org.apache.cxf.jaxrs.client.AbstractClient (which WebClient inherits) has a 
close() method, again should I call this explicitly? Currently we create a new 
WebClient for every call rather than reuse a single instance.

Pls note I am using cxf 2.7.12

Many thanks
Mandy


Reply via email to