You could use an EJB :
- read file and send byte
- receive byte and write file
The client convert byte to a Temp File.
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.
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.