I'm planning to setup an Enterprise application where the Java standalone client can upload and download .doc and .odt documents from an application server (WildFly). I'm evaluating different solutions such as:
- Using a Servlet as bridge to upload documents and download using an HttpConnection.
- Using a REST Web service to upload and download the document
- Using an EJB and passing the document as argument and returning the document from the EJB call
I think all of the above solutions should somehow work, but which is more fit for a Desktop application, which also needs some level of authentication during the communication? Thanks