EJB @PostActivate

Javadoc

The @PostActivate annotation lets you define a method to be called just after a stateful session bean has been put into service, but before the business method is called.

  @Stateful
  public class MySessionBean {
    @PostActivate
    public void runMeAfterActivatingMe()
    {
    }
  }