@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface PreRemove
Annotation that designates a method to receive a callback when the persistent entity associated with the object is about to be removed. 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 active transaction context.