2.2.5.2. Initializing workspace name and repository name in storage-configuration.xml

In details:

Once the war:/ks-extension/jcr/repository-configuration.xml file has been initialized, the server will load the storage-configuration.xml file, and the setLocation function in the org.exoplatform.forum.common.conf.DataLocationPlugin component will run.


<external-component-plugins>
  <target-component>org.exoplatform.forum.common.jcr.KSDataLocation</target-component>
  <component-plugin>
    <name>ks.data.location</name>
    <set-method>setLocation</set-method>
    <type>org.exoplatform.forum.common.conf.DataLocationPlugin</type>
    <init-params>
      <value-param>
        <name>repository</name>
        <description>JCR repository for KS data</description>
        <value>repository</value>
      </value-param>
      <value-param>
        <name>workspace</name>
        <description>workspace for KS data</description>
        <value>knowledge</value>
      </value-param>
    </init-params>
  </component-plugin>
</external-component-plugins>

In which,

Value-paramPossible valueDefault valueDescription
repository string repository The JCR repository for KS data.
workspace string knowledge The workspace for KS data.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus