I would like to run some code when my applications gets deployed (like check some prerequisites, preload some data or initialize logging system… everything that should not be done for every user session again).
Google told me that one option is to use a ContextListener but this his to be configured in web.xml which does no longer exist for my Vaadin 7 Servlet 3.0 setup.
Whats the best nowadays solution for this (please consider that Im not an experienced programer so I need a simple solution)?