I would consider if the entity beans were properly designed if you have a
lot of transactions that seem to cut across little bits of many entities.

I would also consider how frequent are these transactions, and by what
criteria do you actually need to judge their performance.

When inserting, clearly a single stored procedure call from a session bean
will be much less network I/O than ejbStore SQL from several entity beans.
In the end, the database has to do all the work though, so you should
probably check to see how the two methods compare.  It may have less of an
impact that you might think.

Once you start mixing entity beans and session beans for updates life gets
more complicated.  If you are contemplating moving entirely to session
beans, get or write some good tools to handle the persistence for you.

Cheers
Jay Walters

-----Original Message-----
From: zahid rahman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 6:32 AM
To: [EMAIL PROTECTED]
Subject: Extracting/Inserting Rows across tables


When extracting/inserting rows across tables is there a case that one should
opt to use Session Beans rather than consider using entity beans.
because
a. it saves on creating unecessary entity beans and then calling the
accessor/mutator methods on the many entity beans to get the data. A
manually created select/insert statement increases efficiency in development
time

b. reduces network traffic therefore runtime speed.

c. reduces an uneceassry layer of tiers.

would anyone care to agree or disagree because...

Regards,
Zahid









_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail 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".

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