users@glassfish.java.net

Re: Poor concurrent Jersey Client performance

From: <glassfish_at_javadesktop.org>
Date: Wed, 19 May 2010 05:17:30 PDT

My client code looks like the following (below). I took a look at the objects I'm using. It wasn't obvious where I could replace the httpclient.

 ClientConfig cc = new DefaultClientConfig();
 Client c = Client.create(cc);

 WebResource r = c.resource(_URL);
 ClientResponse response = r.path(_Method).type
 (MediaType.APPLICATION_XML).post(ClientResponse.class, _content);
 if (response.getStatus()==200)
   ...
[Message sent by forum member 'davesiracusa']

http://forums.java.net/jive/thread.jspa?messageID=470461