1.4.2.2.1. Adding new configuration files from a WAR file

A ServletContextListener called org.exoplatform.container.web.PortalContainerConfigOwner is added to notify that a web application provides some configurations to the portal container, and this configuration file is WEB-INF/conf/configuration.xml available in the web application itself.

If your .war file contains some configurations to add to the PortalContainer, simply add the following lines in your web.xml file.


<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                 "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
...
  <!-- ================================================================== -->
  <!--           LISTENER                                                 -->
  <!-- ================================================================== -->
  <listener>
    <listener-class>org.exoplatform.container.web.PortalContainerConfigOwner</listener-class>
  </listener>
...
</web-app>
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus