Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This site 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.

Extension Webapp Module Structure

Extension Webapp Module Structure

Web Application extensions consist of two parts: a JAR and a WAR. The JAR component contains the extended class files, while the WAR component contains the project configuration files. This separation of class files from project configuration files makes the web applications more robust and easier to maintain.

The JAR component has the following structure:

  1. <ext-[webapp-name]>
  2. src
  3. main
  4. java
  5. // Extension classes go here
  6. resources
  7. META-INF
  8. conf
  9. [webapp-name]-plugin.xml // Spring configuration for new and overriding beans goes here
  10. pom.xml

Copy

The WAR component has the following structure:

  1. ext-[webapp-name]-webapp
  2. src
  3. main
  4. filtered-resources
  5. module.properties // Template file used to set Spring property values at build-time. For more info, see Build-time property configuration.
  6. webapp
  7. WEB-INF
  8. misc
  9. log4j.properties
  10. spring
  11. ep-monitoring.xml // Health check configuration
  12. elastic-path-servlet.xml // Entry point for loading Spring configuration
  13. web.xml // WAR configuration
  14. pom.xml

Copy