[jboss-user] [EJB3] - Re: @Schedule on Stateless EJB 3.1 on JBoss 6.0 Final

Jacek Laskowski do-not-reply at jboss.com
Sat Aug 20 16:15:37 EDT 2011


Jacek Laskowski [http://community.jboss.org/people/jlaskowski] created the discussion

"Re: @Schedule on Stateless EJB 3.1 on JBoss 6.0 Final"

To view the discussion, visit: http://community.jboss.org/message/621998#621998

--------------------------------------------------------------
Hi,

Use *@Schedule(second = "*", minute = "*/1", hour = "*", info="Every 1 minute")* to achieve it. According to *18.2.1.2 Expression Rules* of the EJB 3.1 spec - hour defaults to 0 and that's what postpones the timer around the midnight.

Jacek
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/621998#621998]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110820/6dc1538a/attachment.html 


More information about the jboss-user mailing list