[jboss-user] [jBPM] - Re: Does jBPM support clustering for load balancing?

Marian Buzdugan do-not-reply at jboss.com
Mon Nov 7 14:43:28 EST 2011


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111107/babb501d/attachment.html 


More information about the jboss-user mailing list