简体   繁体   中英

Setting up a basic cloud for documents using Java EE 7


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:

  1. Using a Servlet as bridge to upload documents and download using an HttpConnection.
  2. Using a REST Web service to upload and download the document
  3. 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

I agree all of the above solutions should work, however instead of using plain Servlets, why not using HttpClient libraries from Apache which make fairly simple to upload and download files ? There is even a library written on the top of HttpClient which is named Awake file which is opensource and allows secure upload and download of documents from Java Desktop applications and Android clients as well. Hope it helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM