Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [EJB 3.0] - Re: Ejb 3s and scheduling with cron
 expression.

scott.stark@jboss.org

2007-06-15


This is the inflowmdb unit test:
@MessageDriven(activationConfig =
| {
| @ActivationConfigProperty(propertyName="cronTrigger", propertyValue="0/2 * * * * ?")
| })
| @ResourceAdapter("quartz-ra.rar")
| public class QuartzMDBBean implements Job
| {
|   private static final Logger log = Logger.getLogger(QuartzMDBBean.class);
|
|   public static boolean called = false;
|
|   public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException
|   {
|     log.info("************** here!!!!");
|     called = true;
|   }
| }
|

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054823#4054823

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054823
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.