users@jersey.java.net

Re: [Jersey] Resource Management through nested sub-locators

From: Martin Probst <mail_at_martin-probst.com>
Date: Thu, 11 Jun 2009 15:07:17 +0200

> I was thinking of the Closeable instance registered when the session is
> created.

Yes, that should work.

Is there a way to do all of that automatically behind the scenes, with
the user just writing @Context Session session? I assume I'd need to
somehow provide an Injectable<Session> to Jersey, but that depends (at
least for my current use case) on the HTTP request for Authentication
information.

Martin