Class MainContext

java.lang.Object
com.openmeet.webservice.MainContext
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

@WebListener public class MainContext extends Object implements jakarta.servlet.ServletContextListener
Initializes the DataSource for the Db Connection just once in the lifetime of the application when it starts up.
  • Constructor Details

    • MainContext

      public MainContext()
  • 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