Exemplo n.º 1
0
 @Override
 public void start(final BeanContext beanContext) throws OpenEJBException {
   final EjbTimerService timerService = beanContext.getEjbTimerService();
   if (timerService != null) {
     timerService.start();
   }
 }
  public void deploy(BeanContext beanContext) throws OpenEJBException {
    String id = (String) beanContext.getDeploymentID();
    synchronized (this) {
      deploymentRegistry.put(id, beanContext);
      beanContext.setContainer(this);
    }

    EjbTimerService timerService = beanContext.getEjbTimerService();
    if (timerService != null) {
      timerService.start();
    }
  }