Java Reference
In-Depth Information
• Simplification of the enterprise bean types.
• EJB support inheritance and polymorphism.
• Light-weight CRUD operations with JPA EnityManager
API.
• Enhanced query JPA capabilities.
• Life cycle callback methods can be defined in ejb itself or in
a bean listener class.
• Interceptor facility listeners for session beans and
message-driven beans. An interceptor method may be defined
on the bean class or on an interceptor class associated with
the bean.
• It is possible to use both CMP and JPA in one application
Bean Managed Vs Container Managed Transaction
The Java Platform EE platform supports two
transaction-management paradigms: declarative transaction
demarcation and programmatic transaction demarcation.
Declarative transaction management refers to a
non-programmatic demarcation of transaction boundaries,
achieved by specifying within the deployment descriptor the
transaction attributes for the various methods of the
container-managed EJB component. This is a flexible
approach that facilitates changes in the application's
transactional characteristics without modifying any code.
Container-managed transaction demarcation must be used by
entity EJB components.
Search WWH ::




Custom Search