Whats the negetive with using Stateless session beans to do the actual query
itself, and then have the EntityBeans make calls into them?  In that way

1) All data access code is still in one place, the session beans
2) The data manipulation and read is still available outside of the entity
bean for direect access if needed?

Dave Wolf
Internet Applications Division
Sybase


> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Francis Pouatcha
> 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".

Reply via email to