Difference between container-managed & bean-managed
persistence?

Answer Posted / janet

In container-managed persistence, entity bean data is
automatically maintained by the container using a mechanism
of its choosing. For example, a container implemented on top
of an RDBMS may manage persistence by storing each bean?s
data as a row in a table. Or, the container may use Java
programming language serialization for persistence. When a
bean chooses to have its persistence container managed, it
specifies which of its fields are to be retained.

In bean-managed persistence, the bean is entirely
responsible for storing and retrieving its instance data.
The EntityBean interface provides methods for the container
to notify an instance when it needs to store or retrieve its
data.

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is state maintained by a Stateless bean?

776


can anyone explain me the workflow of EJB.I have developed an app. in WSAD using an example that contains CMP and session bean.But i am not able to understand the basic flow between diffrent packages.

1987


What is ejb and its types?

715


What is ejb and its uses?

722


How does ejbs work?

708


Who took over ejb?

800


What is stateless ejb?

734


Is ejbCreate() method mandatory while defining a Session Bean?

792


What is ejbdoclet?

713


Explain the concept of ejb ql?

820


Should services be stateless?

687


What is Enterprise JavaBeans (EJB)?

780


What is ejb in java?

717


Explain transaction and various methods to manage it?

729


What is passivation and activation in ejb?

723