Excellent points, Sriram!
A paper I wrote on the use of tabular data for the EJB workshop describes
some implementation options for returning ResultSets, arrays, or other
tabular types of data to the client. The tabular data strategies are meant
to be used when a session bean needs to provide complex data to the client
without exposing the underlying object model. I've used them successfully in
both Java RMI and CORBA projects.
It can be found at:
http://www.inprise.com/events/ejbdesign/submissions/tabluar_data.html
Richard
-----Original Message-----
From: Sriram Srinivasan
To: [EMAIL PROTECTED]
Sent: 2/25/99 2:03 PM
Subject: Re: Question regarding Session and Entity Beans
Look at the session bean as a representative of the client on the
server, instead of as a public wrapper for the entity bean. So, if
the UI displays a list of customer names and addresses, you could
(should) have a method on the session bean that returns an array
of customer related data, either formatted as a ResultSet or an
array of "CustomerInfo" objects .. your choice. The UI should
not dwell on the structure of the object model.
===========================================================================
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".