Exam 1z0-900 All QuestionsBrowse all questions from this exam
Question 14

Given:

What code needs to be added to line 1 for MyMapper bean instances to be correctly passivated?

    Correct Answer: D

    For a bean to be correctly passivated, it must be a stateful session bean. The @Stateful annotation is used to designate a bean as stateful, meaning it maintains state information between client interactions. Passivation is a process that is inherently supported by the stateful nature of the bean, thus additional annotations like @PassivationCapable are not necessary. Therefore, @Stateful is the only annotation required at line 1 for MyMapper bean instances to be correctly passivated.

Discussion
peteVlnOption: D

Stateful is the only annotation necessary