Hi,
I'm not quite sure how to understand the paragraph about @Clustered and EJB timers:
Persistent EJB Timers (which are the default) will work correctly with
clustered singletons since they will only be executed in a single node
of the cluster
Does
this mean that when I annotate a bean with @Clustered and this bean has
a method annotated with @Scheduled, that I get a single cluster-wide
bean but the scheduled task is always only executed on a single instance
and when this instance goes down no other instance will execute the
task?
What
I'm trying to do is to have only one instance in a cluster (deployment
group) executing a scheduled task, however, any instance should be able
to perform it. If one instance executed this task the last time and goes
down, then another instance should pick it up and execute it.
From
reading the Payara documentation I would assume that this could be done
with a (Payara 5) deployment group, but not with a (Payara 4) cluster?
Are
there any other suggestions how to do this? I've looked at Quartz in
cluster mode, but if possible I would like to stay inside Java EE.
Best regards
Matthias