JBoss Community

Avoiding concurrent invocations of an automatically scheduled bean

created by Noa Drach in EJB3 - View the full discussion

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

 

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

Start a new discussion in EJB3 at Community