Laird Nelson wrote:
>
> Assaf Arkin wrote:
> > IF you use a session bean, it must load all the records, serialize them
> > and return a serialized copy.
>
> {grok grok grok grok}
>
> Why can't a stateless session bean return, say, an Enumeration or an
> Iterator backed by a JDBC ResultSet?  Is it because neither Enumeration
> nor Iterator nor ResultSet are Serializable instances?

By the time the client gets back a reference to the ResultSet, the
session bean has already been recycled to server some other client,
reusing the connection.

JDBC 2.0 standard extensions (the one used in EJB) added a RowSet
mechanism which is serializable just for that.

arkin


>
> Puzzled.
>
> Cheers,
> Laird
>
> ===========================================================================
> 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".

--
----------------------------------------------------------------------
Assaf Arkin                                           www.exoffice.com
CTO, Exoffice Technologies, Inc.                        www.exolab.org

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