But that's what you may have to pay for the layering! Sometimes it's worth
the effort to maintain strict layering.
Subbu
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Pandurangan, Soundar
Sent: Monday, September 18, 2000 4:40 PM
To: [EMAIL PROTECTED]
Subject: Re: Reason for using entity beans
Well, if there are say 100 calls to the DB, then, if we go by the Entity
Bean (rather than DAO), then that many wrappers (for instance, in case of
PKclass) need to be maintained and they in turn need to be utilized by the
session beans, whereas, if we use the DAO sessions (stateless) we are going
to hit the DB directly and that reduces a lot (and lot and lot) o/h for the
pool. You could very easily visualize the difference.
Soundar
www.eoriginal.com
-----Original Message-----
From: Francis Pouatcha [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 18, 2000 4:25 PM
To: [EMAIL PROTECTED]
Subject: Re: Reason for using entity beans
Hi Manisha,
Manisha Menon wrote:
>
> Hi Francis,
>
> Yes ! Can you please elaborate the pluses and minuses
> in wrapping a DAO object from a stateless session bean
> to the other design of wrapping a DAO object by an
> entity bean instances.
>
> When should you consider each design ?
>
> Thank you
>
DAO can be used by both entity and stateless session bean. You save a
lot of time in both cases when testing DB-calls and when switching DBs.
But you can't replace entity beans with stateless session beans (see my
previous mail). Each of this bean types has its own advantages and
drawbacks.
/Francis
--
[EMAIL PROTECTED]
MATHEMA Software GmbH
N�gelsbachstra�e 25 b
91052 E r l a n g e n
D e u t s c h l a n d
Tel +49(0)9131/8903-0
Fax +49(0)9131/8903-55
http://www.mathema.de
===========================================================================
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".
===========================================================================
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".