users@jersey.java.net

How to create 'global handles' with JAX-RS?

From: Jan Algermissen <algermissen1971_at_mac.com>
Date: Fri, 02 Oct 2009 13:02:29 +0200

Sorry if this question is somewhere in the docs, but I am unable to
access the Web site.

What is the intended way of managing 'global' objects such as database
connections with JAX-RS? Since there is no init() method on the
Resource classes or any form of injection, how do I initialize and
access per-servlet global objects?

Is this built-in or do I have to pull in something like Spring?

Thanks,

Jan