Annotation Type PrePassivate
@Target(METHOD) @Retention(RUNTIME) public @interface PrePassivateDesignates a method to receive a callback before a stateful session bean is passivated.
If the method to which this annotation is applied is defined on an interceptor class, it must have one of the following signatures:
void <METHOD>(InvocationContext) Object <METHOD>(InvocationContext) throws Exception
If the method to which this annotation is applied is defined on a target class, it must have the following signature:
void <METHOD>()The method can have public, private, protected, or package level access. It must not be declared as final or static.
- EJB 3.0