Java Mailing List Archive

http://www.junlu.com/

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

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

scott.stark@jboss.org

2007-06-15


Hi,


I have a "simple" problem and I was wondering if there is a easy solution...

I have an EJB3


| @Stateless
| public class SendSettlementEmailBean implements SendSettlementEmail {
|  public void sendEmail() {
|    System.out.println("Running Now");
|  }
| }


Now I want this piece of code to run on the 1st day of every month? How do I go about doing that?

I tried using quartz, but it only works with ejb 2.1, and I had a brief look at the EJB3 Timer but it looks like it can't take a cron expression?

Is there a standard way to do this?

Thanks Sean.

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

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