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

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>