[jboss-user] [EJB3] - Re: EJB 3.1 Timer problems in scheduling recurring task

jaikiran pai do-not-reply at jboss.com
Wed Jan 5 10:15:28 EST 2011


jaikiran pai [http://community.jboss.org/people/jaikiran] created the discussion

"Re: EJB 3.1 Timer problems in scheduling recurring task"

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

--------------------------------------------------------------
I think I know what the problem is. There was a thread here which discussed something similar. Basically, the @Schedule by default creates a persistent timer. The @Schedule is expected to create an auto-timer on deployment of the bean. But ideally, it should not create the auto timer for an already persisted timer (or it should clear off the previous instance). I think there was a JIRA for this one, which I probably missed for 6.0 Final. Let me find that thread first.

For now, delete the JBOSS_HOME/server/<servername>/data folder and as a workaround, use:

@Schedule(minute="*/5", persistent="false")

That should get you past these issues.
--------------------------------------------------------------

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

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/20110105/f72b1112/attachment.html 


More information about the jboss-user mailing list