2 Replies Latest reply on Oct 6, 2016 11:03 PM by regulapati

    How to configure Modeshape 5.2.0 with MongoDB Replica Set?

    regulapati

      Hey,

                    Does anyone know, how to configure Modeshape(5.2.0) when using MongoDB with replica set as binary store.

       

                    Searched for answer in Jboss forum etc. So far no success

       

                    Also looked at the modeshape_3_0.xsd. Copying here the same for easiness.

       

      <xs:attributeGroup name="mongo-storage-attributes">

              <xs:attribute name="host" type="xs:string" use="required">

                  <xs:annotation>

                      <xs:documentation>The MongoDB host name</xs:documentation>

                  </xs:annotation>

              </xs:attribute>

              <xs:attribute name="port" type="xs:integer" use="required">

                  <xs:annotation>

                      <xs:documentation>The MongoDB port number</xs:documentation>

                  </xs:annotation>

              </xs:attribute>

              <xs:attribute name="database" type="xs:string" default="ModeShape_BinaryStore" use="optional">

                  <xs:annotation>

                      <xs:documentation>The MongoDB database name where binaries will be stored</xs:documentation>

                  </xs:annotation>

              </xs:attribute>

              <xs:attribute name="username" type="xs:string" use="optional">

                  <xs:annotation>

                      <xs:documentation>The DB user name</xs:documentation>

                  </xs:annotation>

              </xs:attribute>

              <xs:attribute name="password" type="xs:string" use="optional">

                  <xs:annotation>

                      <xs:documentation>The DB user password</xs:documentation>

                  </xs:annotation>

              </xs:attribute>

          </xs:attributeGroup>

       

              MongodbBinaryStore.java seems to accept replicaSet params but these parameters does not seems to be exposed in XSD

      public MongodbBinaryStore(String host, int port, String database, String username, String password, Set<String> replicaSet) {

       

      Appreciate the help

       

      Thanks

      Ramesh