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
Differentiate ‘Stateful Session’ from ‘Entity Bean’ ?
How can one EJB be called from within another EJB?
When was ejb developed?
What is ejb and its properties?
Can more than a single table be mapped in cmp?
how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean?
Write down the steps for the creation of stateless ejb.
Match the ejb functions given below with the functionality equivalent in sql?
What is a local interface?
Is decorator an ejb design pattern?
What is ejb in spring?
How to increase ejb transaction timeout in weblogic?
The ejb container implements the ejbhome and ejbobject classes. For every request from a unique client, does the container create a separate instance of the generated ejbhome and ejbobject classes?
How can a session bean be configured for transactions of bean-managed?
What are the benefits of ejb?