1 Reply Latest reply on May 14, 2013 1:08 PM by rhauch

    using modeshape-jcr to upload/download jar files  from a remote repository

    kais.hajmansour

      i have created an osgi application which compsed by X jar files, i need to store those jar files in a remote repository and to download them when updates are available .

      so i want to use modeshape to upload and download jars files but didnt understand :

       

      how to define the remote repository

      how to upload those jar files  and how to download them ...

       

      please  can some one explain to me how to define remote repository ( maybe we need to use jboss as7 ) how to upload and downlod jars ...

       

      thx

        • 1. Re: using modeshape-jcr to upload/download jar files  from a remote repository
          rhauch

          You can deploy ModeShape to a server (such as JBoss EAP, Tomcat, etc.) and use the REST API, which would allow your remote clients to upload and download files. However, you might be better off creating your own RESTful web service using simple JAX-RS code or writing a servlet-based application that exposes exactly the functionality you want.

           

          Or, take a look at the S-RAMP governance repository component of Overlord, which is basically a set of web services (on top of ModeShape) for managing and governing artifacts (files) of various kinds. It might actually have out-of-the-box the functionality you want. See their documentation and a few of their blog posts, too.