Examples of TimedObjectInvoker


Examples of org.jboss.ejb3.timerservice.TimedObjectInvoker

public class QuartzTimerJob implements Job
{
   public void execute(JobExecutionContext context) throws JobExecutionException
   {
      PersistentTimer timer = (PersistentTimer) context.getJobDetail().getJobDataMap().get("timer");
      TimedObjectInvoker invoker = timer.getTimedObjectInvoker();
      try {
         invoker.callTimeout(timer.getTimer());
      }
      catch(Exception e) {
         throw new JobExecutionException(e);
      }
   } 
View Full Code Here

Examples of org.jboss.ejb3.timerservice.TimedObjectInvoker

   }
  
   protected TimedObjectInvoker getTimedObjectInvoker()
   {
      // TODO: a hack to get back the container. This needs thinking.
      TimedObjectInvoker invoker = (TimedObjectInvoker) Ejb3Registry.getContainer(containerGuid);
      assert invoker != null;
      return invoker;
   }
View Full Code Here

Examples of org.jboss.ejb3.timerservice.TimedObjectInvoker

/* 68 */     this.containerGuid = containerGuid;
/*    */   }
/*    */
/*    */   protected TimedObjectInvoker getTimedObjectInvoker()
/*    */   {
/* 74 */     TimedObjectInvoker invoker = (TimedObjectInvoker)Ejb3Registry.getContainer(this.containerGuid);
/* 75 */     assert (invoker != null);
/* 76 */     return invoker;
/*    */   }
View Full Code Here

Examples of org.jboss.ejb3.timerservice.TimedObjectInvoker

/*    */ {
/*    */   public void execute(JobExecutionContext context)
/*    */     throws JobExecutionException
/*    */   {
/* 39 */     PersistentTimer timer = (PersistentTimer)context.getJobDetail().getJobDataMap().get("timer");
/* 40 */     TimedObjectInvoker invoker = timer.getTimedObjectInvoker();
/*    */     try {
/* 42 */       invoker.callTimeout(timer.getTimer());
/*    */     }
/*    */     catch (Exception e) {
/* 45 */       throw new JobExecutionException(e);
/*    */     }
/*    */   }
View Full Code Here

Examples of org.jboss.ejb3.timerservice.spi.TimedObjectInvoker

    * @return
    */
   private TimerService createTimerService()
   {
      // get the TimedObjectInvoker
      TimedObjectInvoker timedObjectInvoker = this.getTimedObjectInvoker();
      // if there's no TimedObjectInvoker, we can't do anything, so just
      // throw an exception
      if (timedObjectInvoker == null)
      {
         throw new IllegalStateException("Cannot create timerservice for EJB " + this.getEjbName()
View Full Code Here

Examples of org.jboss.ejb3.timerservice.spi.TimedObjectInvoker

    * @return
    */
   private TimerService createTimerService()
   {
      // get the TimedObjectInvoker
      TimedObjectInvoker timedObjectInvoker = this.getTimedObjectInvoker();
      // if there's no TimedObjectInvoker, we can't do anything, so just
      // throw an exception
      if (timedObjectInvoker == null)
      {
         throw new IllegalStateException("Cannot create timerservice for EJB " + this.getEjbName()
View Full Code Here

Examples of org.jboss.ejb3.timerservice.spi.TimedObjectInvoker

    * @return
    */
   private TimerService createTimerService()
   {
      // get the TimedObjectInvoker
      TimedObjectInvoker timedObjectInvoker = this.getTimedObjectInvoker();
      // if there's no TimedObjectInvoker, we can't do anything, so just
      // throw an exception
      if (timedObjectInvoker == null)
      {
         throw new IllegalStateException("Cannot create timerservice for EJB " + this.getEjbName()
View Full Code Here

Examples of org.jboss.ejb3.timerservice.spi.TimedObjectInvoker

      }

      // finally invoke the timeout method through the invoker
      if (calendarTimer.isAutoTimer())
      {
         TimedObjectInvoker invoker = this.timerService.getInvoker();
         if (invoker instanceof MultiTimeoutMethodTimedObjectInvoker == false)
         {
            String msg = "Cannot invoke timeout method because timer: " + calendarTimer
                  + " is an auto timer, but invoker is not of type" + MultiTimeoutMethodTimedObjectInvoker.class;
            logger.error(msg);
View Full Code Here

Examples of org.jboss.ejb3.timerservice.spi.TimedObjectInvoker

    * @return
    */
   private TimerService createTimerService()
   {
      // get the TimedObjectInvoker
      TimedObjectInvoker timedObjectInvoker = this.getTimedObjectInvoker();
      // if there's no TimedObjectInvoker, we can't do anything, so just
      // throw an exception
      if (timedObjectInvoker == null)
      {
         throw new IllegalStateException("Cannot create timerservice for EJB " + this.getEjbName()
View Full Code Here

Examples of org.jboss.ejb3.timerservice.spi.TimedObjectInvoker

    * @return
    */
   private TimerService createTimerService()
   {
      // get the TimedObjectInvoker
      TimedObjectInvoker timedObjectInvoker = this.getTimedObjectInvoker();
      // if there's no TimedObjectInvoker, we can't do anything, so just
      // throw an exception
      if (timedObjectInvoker == null)
      {
         throw new IllegalStateException("Cannot create timerservice for EJB " + this.getEjbName()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.