users@jersey.java.net

Using client apis on server (or calling a REST service from a REST service)

From: Andrew Ochsner <aochsner_at_cs.stanford.edu>
Date: Mon, 2 Nov 2009 16:08:19 -0600

Hi:

Given that Client instances are expensive to create, is there a good
solution/approach to creating/destroying these in the context of a Resource
(which currently is using per-thread instantiation)? I'm not doing anything
complicated, just curious if there's a best practice for these sorts of
things

Thanks
Andy O