<configuration
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd"
   xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd">

  <component>
    <key>JCRProperties</key>
    <type>org.exoplatform.container.ExtendedPropertyConfigurator</type>
    <init-params>
      <values-param>
        <name>properties.urls</name>
        <value>jar:/conf/jcr-local.properties</value>
        <!-- load this at last to reuse properties from upper files -->
        <value>jar:/conf/jcr.properties</value>
      </values-param>
      <values-param profiles="cluster">
        <name>properties.urls</name>
        <value>jar:/conf/jcr-cluster.properties</value>
        <value>jar:/conf/jcr-cluster-tcp.properties</value>
        <!-- load this at last to reuse properties from upper files -->
        <value>jar:/conf/jcr.properties</value>
      </values-param>
      <values-param profiles="cluster-jgroups-udp">
        <name>properties.urls</name>
        <value>jar:/conf/jcr-cluster.properties</value>
        <value>jar:/conf/jcr-cluster-udp.properties</value>
        <!-- load this at last to reuse properties from upper files -->
        <value>jar:/conf/jcr.properties</value>
      </values-param>
    </init-params>
  </component>

  <external-component-plugins>
    <target-component>org.exoplatform.container.definition.PortalContainerConfig</target-component>
    <component-plugin>
      <name>Change PortalContainer Definitions</name>
      <set-method>registerChangePlugin</set-method>
      <type>org.exoplatform.container.definition.PortalContainerDefinitionChangePlugin</type>
      <priority>40</priority>
      <init-params>
        <value-param>
          <name>apply.default</name>
          <value>true</value>
        </value-param>
        <values-param>
          <name>add.profiles</name>
          <value>jcr</value>
        </values-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>

  <external-component-plugins profiles="cluster">
    <target-component>org.exoplatform.commons.api.persistence.DataInitializer</target-component>
    <component-plugin>
      <name>CommonsChangeLogsPlugin</name>
      <set-method>addChangeLogsPlugin</set-method>
      <type>org.exoplatform.commons.persistence.impl.ChangeLogsPlugin</type>
      <init-params>
        <values-param>
          <name>changelogs</name>
          <description>Change logs of commons</description>
          <value>db/changelog/jcr-index.db.changelog-1.0.0.xml</value>
        </values-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>

</configuration>
