Hello Maciej
The TaskService schedules deadline tasks (code below) and it does that in the constructor.
.....................................................................................................................................
for (Object object : em.createNamedQuery("UnescalatedDeadlines").getResultList()) {
DeadlineSummary summary = (DeadlineSummary) object;
schedule(new ScheduledTaskDeadline(summary.getTaskId(),
summary.getDeadlineId(),
this),
summary.getDate().getTime() - now);
}
.....................................................................................................................................
If the TaskService is created in each node (server) in the cluster, duplicated deadlines tasks will be created.
How can this be avoided?
Thanks
Regards
Marian B