Hello Kirril,
Your first line consists of two statements:
Collection c = ejb.findByWhatver(...);
and
Iterator i = c.iterator();
When the finder is called the container will create the collection and
put the results (remote or local interfaces of the selected entity
beans) in it.
So by the time the iterator is created they are already cached.
Regards,
Dies
> A question which is bothering me last time is: does EJB container able
> to read-ahead the collection of entities just have returned to the
> client? It will be great if it's implemented in whatever J2EE
> compliant AS!
> For example if client calls finder method and iterates the collection
> of entities:
> Iterator i = ejb.findByWhatver(...).iterator();
> while (i.hasNext()) { ... }
> then EJB container iterate this collection also to cache entities and
> make this 'while' faster.
> Does it implemented anywhere?
>
> ---
> Kirill Mikhailov
>
===========================================================================
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".