1 22 package org.jboss.tutorial.quartz; 23 24 import org.jboss.annotation.ejb.ResourceAdapter; 25 import org.jboss.logging.Logger; 26 import org.quartz.Job; 27 import org.quartz.JobExecutionContext; 28 import org.quartz.JobExecutionException; 29 30 import javax.ejb.MessageDriven ; 31 import javax.ejb.ActivationConfigProperty ; 32 33 38 @MessageDriven (activationConfig = 39 { 40 @ActivationConfigProperty (propertyName="cronTrigger", propertyValue="0/2 * * * * ?") 41 }) 42 @ResourceAdapter("quartz-ra.rar") 43 public class AnnotatedQuartzMDBBean implements Job 44 { 45 private static final Logger log = Logger.getLogger(AnnotatedQuartzMDBBean.class); 46 47 48 public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException 49 { 50 AnnotatedQuartzMDBBean.log.info("************** here in annotated!!!!"); 51 } 52 } 53 | Popular Tags |