Yes most of the time. If it will cost you too much development effort. and
unless you want certain other features like relation ships etc which cannot
be managed by procedures. You can have the mixture of the two also. Say
convert some procedures to Ejbs.
Another example may be you are trying to read certain fields again-2 and you
dont want to hit the database every time. If you using SPs then you will
have to call SPs every time.

Cheers
Ashwani
----- Original Message -----
From: "Vikram Naik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 4:21 PM
Subject: Re: Why Ejb?


> SO to conclude...
>         If we have SPs already defined we shouldn't go for ENTITY BEANS
> !!!!!!!!!!!!!
>
>
>
> Vikram Naik
>
>
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ashwani Kalra
> Sent: Tuesday, July 16, 2002 3:37 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Why Ejb?
>
> You will have to use wrapper/facade in SLSB/SFSB from which you can take
> advanatage of the transactions and security. You can manage the
transaction
> in SPs also and propagate errors to the session bean methods.
> Scalability issue will then shift to  session beans.
>
> ----- Original Message -----
> From: "Vikram Naik" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 16, 2002 3:46 PM
> Subject: Re: Why Ejb?
>
>
> > Hi,
> >         Thanks for the quick reply...
> >         Apart from getting generated SQL's  what about the transactions
> and
> > scalability ????
> >
> > Vikram Naik
> >
> >
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Ashwani Kalra
> > Sent: Tuesday, July 16, 2002 3:19 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Why Ejb?
> >
> > Two reasons :
> > 1.EJB(cmp) makes code independent of the Database.
> > 2. You dont have to code sql queries for inserting/updating etc.
> >
> > If you already have Sps then you can completely avoid Entity EJBs and
use
> > DAO to call SPs.
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Cheers
> > Ashwani Kalra
> > http://www.geocities.com/ashwani_kalra/
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> > ----- Original Message -----
> > From: "Vikram Naik" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 16, 2002 3:22 PM
> > Subject: Why Ejb?
> >
> >
> > > Hello All,
> > >
> > > Why should we opt of EjBs when stored procedures can give us better
> > > performance?
> > >
> > > Your opinions will be highly appreciated.
> > >
> > > Thanks & Regards,
> > > Vikram Naik
> > >
> > >
> >
>
===========================================================================
> > > 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".
> >
>
>
===========================================================================
> 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".

Reply via email to