2 Replies Latest reply on Nov 26, 2013 4:23 AM by barisonen

    Location of Index Storage

    barisonen

      I am working on JBoss EAP version 6.1.0 and Modeshape version 3.6. With the following configuration, i am trying to store the index directory on my D Drive :


      <paths>

           <path name="modeshape.filestore.directory.repo.sample" path="D:/ModeshapeRepositories/filestore/sample"/>

           <path name="modeshape.indexstore.directory.repo.sample" path="D:/ModeshapeRepositories/indexstore/sample"/>

      </paths>

       

      <repository name="sample" cache-name="sample" cache-container="modeshape">

           <local-file-index-storage format="LUCENE_CURRENT" relative-to="modeshape.indexstore.directory.repo.sample" path="modeshape/sample/indexes" access-type="auto" locking-strategy="native"/>

      </repository>

       

      Instead of having the expected index directory "D:/ModeshapeRepositories/indexstore/sample/modeshape/sample/indexes",

      Modeshape stores the indexes under /bin directory of JBoss : "D:\development\servers\jboss-eap-6.1.0\bin\modeshape.indexstore.directory.repo.sample\modeshape\sample\indexes\nodeinfo"

       

      Any idea what i am doing wrong here or missing? My full configuration file is attached to the message.




        • 1. Re: Location of Index Storage
          hchiorean

          I suspect paths are somehow treated specially and our kit only supports the default jboss.server.data.dir path, not custom defined ones.

           

          Normally with a system variable this should work:

              <system-properties>

                  <property name="modeshape.filestore.directory.repo.sample" value="D:/ModeshapeRepositories/filestore/sample"/>

              </system-properties>

           

          And then

           

          <local-file-index-storage format="LUCENE_CURRENT" relative-to="${modeshape.filestore.directory.repo.sample}" path="modeshape/sample/indexes" access-type="auto" locking-strategy="native"/>

          • 2. Re: Location of Index Storage
            barisonen

            Thank you very much.