It isn't recommended for EJBs to access the file
system. It is a potentially blocking operation
outside the control of the AppServer.
You'll find you can actually do it.
Since FTP is the standard way to move files around on the net, I would seek out an open source implementation of FTP, and build client side into your client app and build an MBean around the server side FTP