2 Replies Latest reply on Sep 11, 2014 9:51 AM by hchiorean

    ModeShape File System External Resource Problem

    mustafamizrak

      Hi,

       

      We configure our external resource as follows:

       

      /subsystem=modeshape/repository=SomeRepository/source=SomeExtRes:add(classname="org.modeshape.connector.filesystem.FileSystemConnector",properties=[{"directoryPath"=>"/media/user/diskName/path"}],readonly="false",projections=["default:/document/extHdd=>/"],cacheTtlSeconds="1",queryable="true")
      

       

      However, when saving new file to the /document/extHd/xxx with following code, external resource/drive is still empty. In other words, binary data is not saved in "/media/user/diskName/path/xxx" (external resource), it is saved in the path specified for binaries with repository create configuration.

       

      Node newNode = parentNode.addNode("/document/extHd/xxx", NT_FILE);
      

       

      Is there any idea to handle that problem or do we skip any additional configuration?

       

      Regards,