Hi!
BMP currently do not allow to perform some optimizations like loading a
lot beans in one select. Introducing such optimizations in BMP is
extremlly difficult. For example CMP can easily optimize following case:
Collection c = home.findSomething();
Interator i = c.iterator();
while(i.hasNext())
{
o = i.next();
...
}
...
i = c.iterator();
while(i.hasNext())
{
o = i.next();
...
}
In CMP container may preload next N beans on call of Iterator.next(). In
BMP persistence layer may precache data for first iteration but it will
be unable to precache data for second select beacuse it does not know
time when it will happen. Even for first iteration, BMP persistence
layer may precache not needed data.
Constantine
Wei Jiang wrote:
>
> CMP is mainly for less skilled people, like
> PowerBuiler people. When tools are improved, you
> can do it by clicking, not programming.
>
> CMP make things easier for simple cases (most of
> cases are simple). It generates classes, you do
> not need to type, nor debug.
>
> If you have complicated cases, or you want
> optimized code, BMP is the only way to go.
>
> --- Manisha Umbarje <[EMAIL PROTECTED]> wrote:
> > Hi All,
> >
> > I have never used CMP before. I have been working
> > with BMPs only. What
> > is the advantage of using CMP besides the fact that
> > it generates SQL
> > queries?. There are many cases in which you might
> > want to execute SQL
> > Statements based on certain conditions. In such
> > situations, wouln't BMP
> > be more convinient than CMP, since in BMP you can
> > control execution of
> > SQL Statements ?
> >
> > Any help would be greatly appreciated.
> >
> > Manisha
> >
> >
> ===========================================================================
> > 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".
> >
> >
>
> _____________________________________________________________
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.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".