[jboss-user] [EJB3] - Avoiding concurrent invocations of an automatically scheduled bean

Noa Drach do-not-reply at jboss.com
Wed Jan 18 13:40:33 EST 2012


Noa Drach [https://community.jboss.org/people/newway] created the discussion

"Avoiding concurrent invocations of an automatically scheduled bean"

To view the discussion, visit: https://community.jboss.org/message/647455#647455

--------------------------------------------------------------
Hello All,

previously we used quartz and org.quartz.StatefulJob to make sure that a scheduled method will not be invoked if the previous method didn't complete it's work.

is there a way to achieve the same behavior when using EJB3.1 and @Schedule?

I tried to play with -
1. getting the handle at the beginning of the method
2. canceling the timer
3. executing the BL
4. requesting the handle from the timer

this is based on  http://docs.oracle.com/javaee/6/tutorial/doc/bnboy.html http://docs.oracle.com/javaee/6/tutorial/doc/bnboy.html

but i get many errors (running on jboss-as-7.1.0.CR1b)

does any one know if there is a way to do the above scenario?

thanks,
Noa
--------------------------------------------------------------

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

Start a new discussion in EJB3 at Community
[https://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/20120118/a40fb063/attachment-0001.html 


More information about the jboss-user mailing list