Package jakarta.ejb

Annotation Type PostActivate


  • @Target(METHOD)
    @Retention(RUNTIME)
    public @interface PostActivate
    Designates a method to receive a callback after a stateful session bean has been activated.

    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.
    Since:
    EJB 3.0