/** * This should have been final, but ServiceContainer wants to butt in. */ public void start() throws Exception { this.lockedStart(); // Allow invocations until stop() this.allowInvocations(); // Now that invocations are allowed on the containers, // let us invoke this callback so that individual // containers can do an startup invocations if required this.afterStart(); }
/** * Restores the timers after this container has fully started, thus * ensuring that any invocations on this container through the restored * timers are handled successfully * <p> * This method skips timerservice restoration of stateful session beans * </p> * * @see org.jboss.ejb3.EJBContainer#afterStart() */ @Override protected void afterStart() { super.afterStart(); // restore timerservice for non-stateful beans if (this.isStatefulBean() == false) { restoreTimerService(); } }