-
1. Re: javax.ejb.Schedule not working on JBoss 6.0.0.M2
jaikiran Feb 23, 2010 5:49 AM (in response to coresystems_rit)coresystems_rit wrote:
Hi
I just tried to use the Java EE 6 @Schedule annotation, but unfortunately it doesn't look like it works.
@Schedule isn't available in 6.0.0 M2.
coresystems_rit wrote:
If yes, is there a website with the status uf JBoss 6 and JEE6 integration?
From a EJB3 point of view, it's here http://community.jboss.org/wiki/EJB31inAS600M2
From the AS point of view, you can find it here http://bstansberry.wordpress.com/2010/02/16/jboss-application-server-6-0-0-m2-is-out/
-
2. Re: javax.ejb.Schedule not working on JBoss 6.0.0.M2
coresystems_rit Feb 23, 2010 5:53 AM (in response to jaikiran)Hey!
Thanks a lot for your information!
What is the best way to implement such timer stuff currently in the JBoss-6.0.0.M2?
Thanks a lot for your help
-
3. javax.ejb.Schedule not working on JBoss 6.0.0.M2
ramforj Mar 3, 2011 1:52 PM (in response to coresystems_rit)Also what you have set would run every minute, but only from midnight until 1 AM:
@Schedule(minute = "*")
The default value for hour, per the EE 6 Tutorial (http://download.oracle.com/javaee/6/tutorial/doc/bnboy.html), is "0". So if you want every minute of every hour, you will need this:
@Schedule(minute = "*", hour = "*")
e.g.
@Schedule(minute = "*", hour = "*")
public void handleSchedule() {
logger.error("Hello World! It just cannot be this easy. That is crazy talk.");
}