users@jersey.java.net

[Jersey] Resource init/destroy

From: Guilhem <guilhem.legal_at_geomatys.fr>
Date: Mon, 21 Oct 2013 10:40:51 +0200

Hi,

I'm currently updating my services from jersey 1.11 to 2.3.1.
I'm facing two problem :

1) My classes anotated with @Path and @Singleton are no longer
instanciate at startup, but at the first request on them.
Is there any configuration to start all the resource at the application
deployement ?

2) When i shutdown my application server, the @preDestroy method is no
longer called. Do i need to use another annotation?

Guilhem Legal