webtier@glassfish.java.net

[jersey] Reuse Cllient instance and WebResource ?

From: <webtier_at_javadesktop.org>
Date: Fri, 17 Apr 2009 14:31:49 PDT

Hi all,

I'm using Jersey in my project and a component sends REST request using Client and WebResource class. I have a question about reusing Client instance and webresource.

Since I always send the request to the same URL can I have the Client and WebResource instances as members of my request sender singleton or would that be an error ?

Thanks a lot in advance.

paskos
[Message sent by forum member 'paskos' (paskos)]

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