Multiple choice technology architecture

What are two benefits of the new EJB 3.0 model?

  1. Session bean is a POJO managed by the EJB container.

  2. Stateless session beans require a home interface only.

  3. Callback methods can be defined either in the bean class itself or in a bean listener class.

  4. All session beans and message driven beans need to have a business interface

Reveal answer Fill a bubble to check yourself
A,C Correct answer
Explanation

EJB 3.0 benefits include: (A) Session beans became simple POJOs managed by the container, eliminating home and component interfaces. (C) Callback methods can be defined either in the bean class itself or in a separate listener class using annotations. B is false because stateless beans no longer require home interfaces. D is false because business interfaces became optional with business interface annotations.