Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.ejb3.timerservice.quartz;
 /*    */ 
 /*    */ import  org.quartz.Job;
 /*    */ import  org.quartz.JobDataMap;
 /*    */ import  org.quartz.JobDetail;
 /*    */ import  org.quartz.JobExecutionContext;
 /*    */ import  org.quartz.JobExecutionException;
 /*    */ 
/*    */ public class QuartzTimerJob
/*    */   implements Job
/*    */ {
/*    */   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);
/*    */     }
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.ejb3.timerservice.quartz.QuartzTimerJob
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X