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
What does it mean to be stateless?
What is ejb in spring?
What do you mean by ‘hot deployment’ ?
What is ejb in weblogic?
Where is ejb used?
What is a stateless session?
What is software architecture of ejb?
What is the new basic requirement for a cmp entity bean class in 2.0 from that of ejb 1.1?
What is session bean in ejb?
What is ptp model?
Why do we need ejb in java?
What is the use of @ejb annotation?
What is the difference between find and select methods in ejb?
How does ejb invocation take place?
What optimization could I use if the ejb container is the only point of write access to the database?