How to query the servlet container to obtain effective URL from a ServletContextListener?
How to get URL of a running app inside ServletContextListener?
How to get spring ApplicationContext in ServletContextListener? Error With ServletContextListener ServletContextListener or load-on-startup is first executed? How to configure a ServletContextListener programmatically in Tomcat 7? ServletContextListener: Isn't this incorrect usage? Loading my ServletContextListener in Tomcat 7 ServletContextListener does not execute on deployment ElvisStealer from Effective Java How to register ServletContextListener in spring boot ServletContextListener attribute set in event is null Java, Tomcat, ServletContextListener, and a background thread Get spring application context on a ServletContextListener How to run thread in ServletContextListener? java Initializing a resource in ServletContextListener and accessing one in Servlet loading the property file values into web.xml using servletContextListener What will always call earlier: servletContextListener method or constructor? Appropriate use of a ServletContextListener in Java / Apache Tomcat web application Is it a good practice to override implementation of ServletContextListener? Which code is more effective? Why? ServletContextListener execution order Make ServletContextListener spring aware How to add ServletContextListener to existing @Service? ClassNotFoundException with ServletContextlistener Why can't Eclipse find javax.servlet.ServletContextListener? Jersey 2 alternative to ServletContextListener Is there a more effective way to output html in servlet? How to schedule ServletContextListener to execute on a specified date and time Tomcat - Redirect to Error Page when ServletContextListener fails Preferred way to handle Java exceptions in ServletContextListener