Aashish:
We have a similar product where we need to serve lot of images. In the
current product we used CORBA to create an ImageServer and pass the Image to
the Client as a ByteStream. However, when tried to port the logic to EJB, I
did not have much success, as ByteStreams do not implement Serializable.
If you want to process huge data transfers, my suggestion is to use Servlet
(provided u you trying to serve the images to the Web Tier) and access the
database. If you want scalability you can go for the CORBA solution.
Currently, it works well for us. You can use the Servlet OutputStream and
write the image to the outputstream and set the correct mime type. This can
be served straight to the browser. IMHO as some ppl have pointed out, not
everthing might be a good fit for EJBs.
I am open to any other suggestion(s) from other members of the group as
well.
Thanks.
-Sunil Kuchipudi
-----Original Message-----
From: aashish agarwal [SMTP:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 6:38 AM
To: [EMAIL PROTECTED]
Subject: Entity beans and Images-Suggestions Please!
Hi All,
We are using images whose size can go upto 1MB. My first
question is ,
should we store the images in a Database (oracle) or should we just
store
the relative path for it in the Database.
My second question( which is more relavent for this list) is since
we are
using Entitiy beans and these beans will fetch images, how does one
handle
this problem. Our image size can go upto 1MB and if multiple
instances are
there, the appliction server might crash. So, if anybody has used
entity
beans for HUGE DATA TRANSFER, then could u please guide us abt this.
Hope , the problem is clear to you all.
Any comments/suggestions/questions are welcome!
Regards
Aashish
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
of the message "signoff EJB-INTEREST". For general help, send email
to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".