app startup code?

Hi , as i read on vaadin , “void init” and constructor called on every request.

I need to run some code just once app server starts.
Vaadin doesnt have that support ?


If I understood you correctly, it is doable with ServletContextListener.

public class TestContextListener implements ServletContextListener{

  public void contextDestroyed(ServletContextEvent arg0) {
    // NOP

  public void contextInitialized(ServletContextEvent arg0) {


and in web.xml :


Best Regards,