In a web application I want to receive a file, save and read it then do somethings.
The sender of the file is another software.
What is the best scenario for receive file?
If the sender, send file via mail, how can I configure my web server(JBoss) to receive&save the file?