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 “find a method” from “select method” in EJB ?
Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean?
how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean?
What is ejb container?
What is EJB object?
What are the different types of ejb?
Define SessionContext ?
What is stateless and stateful session bean in ejb?
What are the limitations of using local object?
Is decorator an ejb design pattern?
What is Enterprise JavaBeans Query Language (EJB QL)?
What is stateful or stateless?
What is entity beans in ejb with example?
What is mdb?
Why is ftp stateful?