Aashish,
You must design your EJB to avoid to load all the images
data in the AS memory.
To do that you can create a RemoteIterator which stream
data on a chunks-per-chunk basis from the database
to the EJB and then to the client.
The Remote Iterator is a stateful (it use a JDBC Statement)
Session EJB which provides the following methods:
package com.xxx.ejb;
import java.util.*;
import javax.ejb.*;
import java.rmi.*;
public interface EjbIterator extends EJBObject {
Chunk next() throws Exception;
boolean hasNext() throws Exception;
}
Chunk contains a chunk of data, such as 1024 bytes, or whatever you want.
Another solution should be to use a RMI or RMI/IIOP (probably fatser)
server to manage the downloads outside of the EJB container.
Hope this help
Tibo
>-----Original Message-----
>From: Normal Sender [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 28, 2001 9:14 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Entity beans and Images-Suggestions Please!
>
>
>At 03:37 AM 1/29/2001 -0800, you wrote:
>>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".
--------------------------------------------------------------
QuantumLink Communications, Bombay, India
===========================================================================
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".