Class ServiceEngineServletContextListener


public class ServiceEngineServletContextListener extends Object
When running BFO Publisher under a Java EE Servlet Engine, this is the entry-point that manages the setup for that configuration. Using this class requires the following setup
  1. Place the bfopublisher-bundle.jar file in the WEB-INF/lib directory
  2. Copy the following XML file as WEB-INF/web.xml
  3. zip the WEB-INF folder into a file called bfopublisher.war
The WAR file can then be deployed to any Jave EE Servlet Engine environment. If a WEB-INF/configure.json file is present, it will be used as the initial configuration for the BFO Publisher web-service. The format is exactly the same as is passed into the admin/configure message.
  • Constructor Details

    • ServiceEngineServletContextListener

      public ServiceEngineServletContextListener(ServiceEngine engine)
      Constructor called from embedded webserver - we have one engine, once.
    • ServiceEngineServletContextListener

      public ServiceEngineServletContextListener()
      Constructor called from larger webserver - we create an engine for the context, and destroy it later
  • Method Details

    • contextInitialized

      public void contextInitialized(ServletContextEvent event)
    • contextDestroyed

      public void contextDestroyed(ServletContextEvent e)