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?

799


What is stateless ejb?

747


How to determine, that beans are TX or not?

1841


What is Session Bean Interface?

748


What is the advantage of using entity bean for database operations, over directly using jdbc api to do database operations?

772


How can enterprise javabeans be accessed from active server pages?

779


What is ejb framework?

810


Can you be deported if you are stateless?

669


What are the key benefits of the ejb technology?

809


What is a local interface?

788


Explain the architectural relationship between JavaBeans and JTA?

2659


Is ejb a framework?

718


What ejb means?

714


why Bean class implements all business method of Remote interface but bean bean class not implements the remote interface

2224


What are ejb components?

739