Class WMAppFirstListener

java.lang.Object
com.wavemaker.runtime.web.listener.WMAppFirstListener
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

public class WMAppFirstListener extends Object implements jakarta.servlet.ServletContextListener
This is the first listener declared in the web.xml. It sets the mdc value in its contextInitialized method. This works in conjunction with WMAppLastListener class which is the last listener defined in the web application. Its contextDestroyed method is the last method to be called during un deployment, and it removes the mdc value which is set in contextDestroyed method of WMAppLastListener class
  • Constructor Details

    • WMAppFirstListener

      public WMAppFirstListener()
  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextDestroyed in interface jakarta.servlet.ServletContextListener