users@jersey.java.net

[Jersey] how can I initialize and cache long-lived application-scope objects

From: Jim the Standing Bear <standingbear_at_gmail.com>
Date: Thu, 9 Feb 2012 11:29:23 -0500

Hi,

I just started using Jersey and am developing a RESTful webservice for
tomcat 6. How can I construct and cache some long-lived
application-scope objects in Jersey so that the root resources can
quickly (re)use these objects when requests are received? Thanks.

-- Jim