Package org.faceless.publisher.web
Class ServiceEngineServletContextListener
java.lang.Object
org.faceless.publisher.web.ServiceEngineServletContextListener
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
-
Place the
bfopublisher-bundle.jar
file in theWEB-INF/lib
directory -
Copy the following XML file as
WEB-INF/web.xml
<web-app> <listener> <listener-class> org.faceless.publisher.web.ServiceEngineServletContextListener </listener-class> </listener> </web-app>
-
zip the
WEB-INF
folder into a file calledbfopublisher.war
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 Summary
ConstructorDescriptionConstructor called from larger webserver - we create an engine for the context, and destroy it laterConstructor called from embedded webserver - we have one engine, once. -
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(ServletContextEvent e) void
contextInitialized
(ServletContextEvent event)
-
Constructor Details
-
ServiceEngineServletContextListener
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)
-