Hi,
How can I upload a file using EJB so that it will not create any performance issue relating to memory ?
Regards,
Ajaya
-
File Upload (3 messages)
- Posted by: ajaya panigrahi
- Posted on: January 04 2005 05:01 EST
Threaded Messages (3)
- File Upload by Kris Huggins on January 04 2005 18:05 EST
- File Upload by Sean Sullivan on January 04 2005 21:04 EST
- file upload with pojo by ajaya panigrahi on January 17 2005 00:57 EST
-
File Upload[ Go to top ]
- Posted by: Kris Huggins
- Posted on: January 04 2005 18:05 EST
- in response to ajaya panigrahi
Uploading is a fairly generic term, you might get better help if you are more specific in what you need to do.
If you are staging a file to a database then don't use EJB. POJO is much faster.
If you are initiating a complex business transaction for each record or groups of records in the file then you can just call the EJB or use MDB. Memory considerations come into play if you are processing transactions from the file asynchronously and don't put a limit on how many transactions can be initatied you can flood you EJB server. Also, if you don't configure your EJBs with respect to how they are cached you can end up with EJB instances hanging around longer than the should and consume memory that way.
Some want their EJB to poll for files and initate the upload from there. Don't do that. Use a POJO client that calls EJB instead. -
File Upload[ Go to top ]
- Posted by: Sean Sullivan
- Posted on: January 04 2005 21:04 EST
- in response to ajaya panigrahi
Hi,How can I upload a file using EJB so that it will not create any performance issue relating to memory ?Regards, Ajaya
If you are building a web application, you can upload files via HTTP
http://wiki.java.net/bin/view/Javapedia/FileUpload -
file upload with pojo[ Go to top ]
- Posted by: ajaya panigrahi
- Posted on: January 17 2005 00:57 EST
- in response to ajaya panigrahi
That is true but how can I take help of POJO ?