Re: Re: EJB or JDBC

Konstantin Ignatyev <[email protected]> Thu, 4 Apr 2002 07:29:29 -0800 (PST)
Newsgroups gmane.comp.java.ejb.general
Message-ID <[email protected]>
You are lucky if you can.
Probably, CMP can be used if DB layer reflects your
application model quite straightforward, or you just
repeat DB model on EJB layer. Usually application
object model is differ from DB model by various
reasons. 
I like CMP for testing but I was not able to use it at
production stage.

Let me repeat CMP/BMP are about PERSISTANCE, do not
use finder methods of EntityBeans to return
collections for browse and you will be in great shape.

--- tadta <[email protected]> wrote:
> Hi,
> 
>       Why only bean managed entity beans can be used
> with legacy 
> systems , Why we cannot use CMP with legacy systems
> 
> 
> regards
> 
> 
> 
> --- In EJB-Developer@y..., Konstantin Ignatyev
> <kosta771@y...> wrote:
> > I have decoded your question as a one about
> > implementation persistance layer in your
> application,
> > so:
> > 
> > JDBC - faster(theoretically)
> > BMP(+JDBC) -very flexible and only choice with
> legacy
> > DB or in some sophisticated cases
> > CMP - simpler( $0 in case of JBoss )
> > By the way you will need to call JDBC directly
> > probably even with CMP....
> > 
> > Why do not consider JDO stuff like Castor too?
> > 
> > Performance in absolute terms means nothing, C++
> is
> > faster than Java, so what
> > 
> > --- Abdel Hamid Ghareeb
> > <AbdelHamid.Ghareeb@v...> wrote:
> > > Dear all,
> > >   Any one can help me in this decision   
> > >   whether to use JDBC in my applications or CMP
> > > Entity Beans ?
> > > The above decision needs to be make taking into
> > > consideration the performance issues. 
> > > 
> > > thanks
> > > 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/