> 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