Servlet init() method equivalent in JAX-RS
问题 I am working on an application which is running on Glassfish. I am supposed to convert the servlets to proper restful stuff, by using jax-rs and jersey. I have been trying to find a workaround for init() method, but till now i failed. Here is the original part, using servlets: import javax.servlet.* public void init(ServletConfig config) throws ServletException { super.init(config); if (!isRunning() == true)) { /* Do some stuff here*/ } logger.info("Deamon has started"); } and this one which