Given:
What code needs to be added to line 1 for MyMapper bean instances to be correctly passivated?
Given:
What code needs to be added to line 1 for MyMapper bean instances to be correctly passivated?
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.
Stateful is the only annotation necessary