Multiple choice technology architecture

Which of the following call backs are called for the stateful session bean?

  1. construction

  2. destruction

  3. activation

  4. passivation

  5. All the above

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Stateful session beans in EJB experience multiple lifecycle callbacks: construction (when created), destruction (when removed), activation (when restored from passivated state), and passivation (when serialized to secondary storage). All these events are part of the stateful bean lifecycle.