Hi
I often need to iterate through a Collection and was wondering if its better
to return the collection the client, which is by default serializable or
would it make more sense to wrap the collection such that you can iterate
through it remotely? I would like to know what experiences people have had
with either or another approach that might be preferable. Any pros or cons
to either approach?
Along the same lines finder methods of entity beans return enumerations. I
have read in the archieves of this list that holding that storing this enum
has a negative impact on the server in terms of resource consumption. Is
this true? In a situation where a finder method return 50-100 records, I
might not want to send all of them to the client. Would it not be
reasonable to store the enum in a session object, get the block of records
you want and return those as a small collection (remotely or serializing
what ever is the recommendation from above). Is there a better way to
handle this?
Thanks in advance.
Regards
Tom
______________________________________________________
Get Your Private, Free Email 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".