I have a Glassfish 3.1.2 that runs in a cluster and a EJB 3.1 application. And I need two kind of Scheduled Methods in my application:
I have no clue how to start with this cluster - problem, is this possible with @Schedule
(and how) or do I need something else?
I faced the exact same issue (need one cluster
timer and a per node
timer) and came across this question. So, for anyone interested:
If you declare the timer with @Schedule(..., persistent=true), you will get a cluster
timer stored in the timer db (which can be migrated)
If you declare the timer with @Schedule(..., persistent=false), you will get a node
timer not stored in the timer db (which can't be migrated)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With