We want to generate and deploy one WAR package for our website, using Experience Manager only on the production/staging environment. So we package all the necessary jars, have the XPM filters configured in web.xml and the correct cd_XXX_conf.xml on the classpath. Is there some central way to disable the XPM filters from kicking in so we can disable XPM on all other envs? I was thinking about:
- using Spring WebApplicationInitializera(from servlet 3.0) ServletContainerInitializer to load thoseonly register the XPM filters only when some env-property is set/true
- Subclassing the XPM filters and only apply orig logic if some prop set/true
Other ideas?