I have a function I want to execute straight after tomcat has started and loaded all its attributes successfully. I don\'t want to use ServletContextListener as this will re
ServletContextListener.contextInitialized(..) is the method that is called after all servlets and filters have initialized for a given application.
ServletContextListeners, some of them are called before the others (logically)Update I will now assume your setup, although you didn't share it:
In that case, you have two options:
ServletContextListener after the one for spring in web.xml, thus guaranteeing it will be invoked after it