Discussions
Web tier: servlets, JSP, Web frameworks: Servlet EJB based solution to generate a file and serve to Http
-
Servlet EJB based solution to generate a file and serve to Http (3 messages)
- Posted by: v vaas
- Posted on: October 02 2008 00:07 EDT
I need to design a server side process which takes a request from a non-browser http client and based on the request params contacts a database to generate a data file approximately 1-5mb size and send back to client. I am thinking of a servlet, stateless session bean based solution but the generation time could vary from a few seconds to few minutes. We also need to encrypt the file and transmit to the client. Files needs to stored so that they can be reused. If somebody has done similar tasks, please share the details. What is the best way to serve a file? servlet or just sending the file url so that client could pull it from the webserver bypassing the servlet? Thanks in advance.Threaded Messages (3)
- Re: Servlet EJB based solution to generate a file and serve to Http by Vinod Singh on October 02 2008 12:05 EDT
- Re: Servlet EJB based solution to generate a file and serve to Http by Kumar Subramanian on October 03 2008 17:29 EDT
- File encryption by v vaas on October 10 2008 02:40 EDT
-
Re: Servlet EJB based solution to generate a file and serve to Http[ Go to top ]
- Posted by: Vinod Singh
- Posted on: October 02 2008 12:05 EDT
- in response to v vaas
As file generation is going to take long time (5 minutes) then waiting for response does not sound good. What about generating the file in background and sending an email to client with file URL, when done. Thanks, Vinod http://blog.vinodsingh.com/ -
Re: Servlet EJB based solution to generate a file and serve to Http[ Go to top ]
- Posted by: Kumar Subramanian
- Posted on: October 03 2008 17:29 EDT
- in response to v vaas
Yes, servlet-MDB based asynchronous solution can be an option... Kumar kumar at eminenttech dot com J2EE Architect Eminent Technology Solutions (ETS) Software / Portals / Alfresco / Outsourcing / Proteomics www.eminenttech.com -
File encryption[ Go to top ]
- Posted by: v vaas
- Posted on: October 10 2008 02:40 EDT
- in response to v vaas
Thanks for you valuable responses. Do you have any suggestion on encrypting these files (I need to encrypt the files at the server and the c++ client app running on users laptop downloads them via http) and key mangement? I might be able to get way with one set of keys for all clients.. symmetric vs asymmetric, specific implementations you could recomend. please share if you have any experience. Thanks.