Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Adding Health Monitor to a New Webapp

Adding Health Monitor to a New Webapp

You can add health monitor to a new Elastic Path webapp to use health monitor for consistency with the other Elastic Path app;lications in their environments. For example, you might want to add a new webapp to simulate an ESB in environments where a proper ESB is not available or to isolate custom, non-commerce development modules from the Elastic Path platform.

Add the following status checker servlet to your web.xml at ep-commerce/health-monitoring/ep-health-monitoring-webapp/src/main/webapp/WEB-INF/:
<!-- Health Monitoring servlet -->
<servlet>
    <servlet-name>Status servlet</servlet-name>
    <servlet-class>com.elasticpath.health.monitoring.servlet.StatusCheckerServlet</servlet-class>
</servlet>
 
<servlet-mapping>
  <servlet-name>Status servlet</servlet-name>
  <url-pattern>/status/*</url-pattern>
</servlet-mapping>