4 Replies Latest reply on Nov 13, 2008 2:28 AM by frankthetank

    how to share file system folder accoss Jboss Application Ins

      Dear all

      I am going to deploy my application on Jboss Application Clustering.
      My application stores and access data in a folder. I don't know how to make sure that all Instances use the same data when I run it on Clustering Environment. Perhaps I have to create public folder on my network and permit my application access to that unique folder?

      could you give me some suggestions or Urls to solve this problem?

      Thanks in advance!

        • 1. Re: how to share file system folder accoss Jboss Application

          are there any suggestions for me, please?

          • 2. Re: how to share file system folder accoss Jboss Application
            noelo

            Some suggestions

            If its properties that you want to load you could look at the Jboss property-service.
            It also might be an idea to bind the data to jndi and look it up in your apps..
            Alternatively you could look at look at using jboss cache.

            regards
            Noel

            • 3. Re: how to share file system folder accoss Jboss Application

               

              "noelo" wrote:
              Some suggestions

              If its properties that you want to load you could look at the Jboss property-service.
              It also might be an idea to bind the data to jndi and look it up in your apps..
              Alternatively you could look at look at using jboss cache.

              regards
              Noel

              Thank for your suggestions but perhaps you misunderstood what i mean.
              my problem is
              - my application stores and access data in a folder ( for example: I use a folder to store all uploaded data C:\\upload)
              - if there are two nodes in my clustering environment, for ex: node A and node B, there will be two upload folder, one in node A and another in node B. So I could not sure that data in node A and node B is the same.
              - to solve this problem, I plan to create a share folder in the network and All nodes in the cluster will share the same data folder.
              - because, I don't have any experience in this problem so I am not sure that solution is good enough (can all nodes concurrently access for reading and writing data in one share folder?). can I just use a normal share folder as I do in Windows system or I have to use special devices or other softwares?
              - any one who have experience in this problem could give me your real-practice solution?


              • 4. Re: how to share file system folder accoss Jboss Application
                frankthetank

                I have the same issues.

                The common guideline here seems to use a TreeCache to replicate the data between the nodes (somehow).

                But I am not really happy with this solution.
                There already seems to exist all the required elements in how the farming (FarmMemberService, ClusterFileTransfer) does the replication, I (we) would just need to have the distributer send us a notification if something has been modified.

                Plus, being able to have folder structures (including exploded archives) would be a really nice fix.

                Maybe someone from the team can help us out and if there is no real solution, maybe support us with finding & developing a good solution.