3 Replies Latest reply on Jul 28, 2006 5:50 AM by Louis TOURNAYRE

    How to access remote file system from Swing client?

    simon wang Newbie

      Deal All:
      I want to acess remote file system from my swing client running in different JVM.Does JBoss have some solutions for this purpose?Or anyone can recommend some open source library or any suggestions to satisfy this requirement?
      Any advice will be great appreciated.
      Best Regards!
      Kingofhawks

        • 1. Re: How to access remote file system from Swing client?
          Louis TOURNAYRE Newbie

          Hi,

          You could use an EJB :
          - read file and send byte[]
          - receive byte[] and write file

          The client convert byte[] to a Temp File.

          Regards,
          louis

          • 2. Re: How to access remote file system from Swing client?
            simon wang Newbie

            Hi tournayre:
            The problem is that i want to browse remote file system with a FileChooser in Swing client.So how can i retrive the tree struct of server file system?If i build the tree on server side and transfer it to client,can i operate on all components of that tree,that is to say,maybe i need modify/delete some files.
            Thanks a lot anyway.
            Kingofhawks

            • 3. Re: How to access remote file system from Swing client?
              Louis TOURNAYRE Newbie

              Hi Kingofhawks,

              If you want to manage some directory and file it's certainly could me more easy to use directly the OS capability of networking directory because managing the change of your tree could be more complexe that install a samba server or something like this.
              If you use tree, this tree must just reflet the directory structure, not the data on the files. The file must transfert and update on demand with a byte[] flow.
              Fo your directory structure you have to make an ejb that compare the server tree and the client tree and apply the difference (delete, rename...).
              For the file you ejb just need to read/write file and convert this to byte.

              I hope this help.
              Regards,
              Louis