17-03-2022

Running Multiple CMS Instances with Cargo While Using One Repository (Local Clustered Setup)

1. First checkout the same project twice in different directories.

2. Follow the tutorial  Run 2 Bloomreach Experience Manager instances of Tomcat simultaneously for one of the checkouts.

3. Follow the turorial Use MySQL in a Development Environment for both checkouts.

4. Add the following snippet in the repository.xml of both checkouts.

  <Cluster>
    <Journal class="org.apache.jackrabbit.core.journal.JNDIDatabaseJournal">
      <param name="revision" value="${rep.home}/revision.log"/>
      <param name="url" value="java:comp/env/jdbc/repositoryDS"/>
      <param name="driver" value="javax.naming.InitialContext"/>
      <param name="schemaObjectPrefix" value="repository_"/>
      <param name="schema" value="mysql"/>
    </Journal>
  </Cluster>

5. Run both projects with  mvn -P cargo.run

 

Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?

    We rely on cookies

    to optimize our communication and to enhance your customer experience. By clicking on the Accept and Close button, you agree to the collection of cookies. You can also adjust your preferences by clicking on Manage Preferences. For more information please see our Privacy policy.

    Manage cookies
    Accept & close

    Cookies preferences

    Accept & close
    Back