Could be that the number of entity beans returned by the
finder is larger than the cache size configured for your
EJB Server.  As you iterate through the collection returned,
your server may be passivating (swapping out) beans to make
room.

Charlie

> -----Original Message-----
> From: DaveFord [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 09, 2000 1:42 AM
> Subject: Unneeded calls to ejbStore
>
>
> The following block of code generates a customer pick list. It only READS
> from the database and does NOT WRITE to the database. However, I have added
> a println to CompanyBean's ejbStore method and it reports that ejbStore is
> being called five times (once for each time through the while loop). Why is
> ejbStore being called?
>
> Iterator it = companyHome.findByName("Wal").iterator();
> while(it.hasNext()){
>   Company comp = (Company)it.next();
>   System.out.println( comp.gentile() );
> }
>
> Thanks,
>
> Dave Ford
>

===========================================================================
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".

Reply via email to