Multiple choice technology architecture

Which of the following is true about EJB3.0?

  1. Elimination of lifecycle callback methods.

  2. An interceptor facility for session beans and message-driven beans.

  3. Increased requirements for usage of checked exceptions.

  4. Now you can use standard SQL queries with Java Persistence API.

Reveal answer Fill a bubble to check yourself
B,D Correct answer
Explanation

EJB 3.0 introduced an interceptor facility for session beans and message-driven beans, allowing cross-cutting concerns to be applied declaratively. It also enhanced the Java Persistence API to support standard SQL queries through JPQL and native SQL. EJB 3.0 did NOT eliminate lifecycle callback methods (they became optional annotations), and it actually reduced the requirement for checked exceptions, not increased it.