2.4.2.1.2. Configuration retrieval for a StandaloneContainer

The container is initialized by looking into different locations. This container is used by non portal applications. Configurations are overloaded in the following lookup sequence:

  1. Services default RootContainer configurations from JAR files /conf/configuration.xml

  2. External RootContainer configuration can be found at $AS_HOME/exo-conf/configuration.xml

  3. Services default StandaloneContainer configurations from JAR files /conf/portal/configuration.xml

  4. Web applications configurations from WAR files /WEB-INF/conf/configuration.xml

  5. Then depending on the StandaloneContainer configuration URL initialization:

    • if configuration URL was initialized to be added to services defaults, as below:

      // add configuration to the default services configurations from JARs/WARs
      
      StandaloneContainer.addConfigurationURL(containerConf);

      Configuration from added URL containerConf will override only services configured in the file

    • if configuration URL not initialized at all, it will be found at $AS_HOME/exo-configuration.xml. If $AS_HOME/exo-configuration.xml doesn't exist the container will try find it at $AS_HOME/exo-conf/exo-configuration.xml location and if it's still not found and the StandaloneContainer instance obtained with the dedicated configuration ClassLoader the container will try to retrieve the resource conf/exo-configuration.xml within the given ClassLoader.

Copyright ©2012. All rights reserved. eXo Platform SAS