/** * Creates a {@link TimerService} for this container. * {@link TimerService} creation is skipped for stateful session beans, since * stateful session beans do not support timerservice * * @see EJBContainer#create() */ @Override public void create() throws Exception { super.create(); // for non-stateful beans, create timer service if (this.isStatefulBean() == false) { // just create the timerservice. Restoring of // any timers, will be done in afterStart(), once the container has fully started // (to allow for timeout method invocations) this.timerService = this.createTimerService(); } }