@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface OnPassivate
Annotation that designates a method to receive a callback when the SLEE needs to reclaim the object by disassociating it from an existing persistent entity. This method represents an object transition from the Ready state to the Pooled state, and the object enters the Pooled state after this method returns.
This callback method can be used, for example, to release any state or resources allocated during creation
or object activation
that should not be held while the object is in the Pooled state.
This callback method is invoked with an unspecified transaction context. The object cannot access its persistent CMP state or invoke mandatory transactional methods during this method invocation.