IMHO I'd say you should develop both an entity bean model and a domain object (ie java-bean wrapper class) model.

When requesting lists of data for display purposes - use a session-bean with JDBC - instantiating hundreds of Entitys to list the data on the client isn't going to give great performance.

Then when the user elects to update some of the information he has displayed - either use a message to the domain object to persist it's in memory values via an entity bean or pass the domain object to a session bean method to have it persisted via entity beans.

That way you get better performance for your lists and allow the containerto handle transactional issues when it comes to updates etc...

>From: EJB G <[EMAIL PROTECTED]>
>Reply-To: EJB G <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Question On Architecture
>Date: Fri, 30 Nov 2001 02:14:23 -0800
>
>What's Difference is following two approach
>for server-side components.
>
>Approach 1 :
>Using Coarsed Grained Session Beans to perform
>business logic interacting with database directly.
>Approach 2.
>Using Session Beans to interact with entity beans
>which in turn interact with database.
>
>As far as i know first approach gives better
>performance than second one.Then why one should
>go for Entity Beans.
>We are bit confused whisc approach to follow.
>
>Thanks in Advance.
>
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
>http://geocities.yahoo.com/ps/info1
>
>===========================================================================
>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".
>


Get your FREE download of MSN Explorer at http://explorer.msn.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".

Reply via email to