Thanks Martynas. I am going to search for documentations on
@PostConstruct, but meanwhile if you happen to have any good resources
on the subject please let me know.
-- Jim
On Fri, Feb 10, 2012 at 1:57 PM, Martynas Jusevicius
<martynas_at_graphity.org> wrote:
> Hey,
>
> What about Application constructor or @PostConstruct?
>
> Not sure if it is the best way, but I used @PostConstruct because I
> needed access to injected ServletContext in order to read some local
> files.
>
> Martynas
> graphity.org
>
> On Fri, Feb 10, 2012 at 7:34 PM, Jim the Standing Bear
> <standingbear_at_gmail.com> wrote:
>> Any suggestions?
>>
>> On Thu, Feb 9, 2012 at 11:29 AM, Jim the Standing Bear
>> <standingbear_at_gmail.com> wrote:
>>> 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
>>
>>
>>
>> --
>> --------------------------------------
>> Standing Bear Has Spoken
>> --------------------------------------
--
--------------------------------------
Standing Bear Has Spoken
--------------------------------------