-
1. Re: How to access remote file system from Swing client?
l.tournayre Jul 24, 2006 12:29 PM (in response to kingofhawks)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?
kingofhawks Jul 25, 2006 1:24 AM (in response to kingofhawks)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?
l.tournayre Jul 28, 2006 5:50 AM (in response to kingofhawks)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