Marian Buzdugan [http://community.jboss.org/people/mbuzdugan] created the 
discussion

"Re: Does jBPM support clustering for load balancing?"

To view the discussion, visit: http://community.jboss.org/message/635410#635410

--------------------------------------------------------------
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
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to