This discussion is archived
0 Replies Latest reply: May 1, 2012 7:42 PM by 859967 RSS

Threading EJB clustering

859967 Newbie
Currently Being Moderated
Hi All,

I need to implement some sort of multi threading or executors in EJB; after a while of google, i found that using MDB is a good solution for multithreading. However, i need to control when to execute next "task".
(some tasks are okay to run parallel, but some tasks should be executed after another)

I am imagining; each MDB will be an independent batch of tasks and it can run in parallel with other MDB.
All tasks owned by a MDB are dependent. One task should be completed before the other task begins.

So in each MDB, i have to control when the task is done in order to execute next task.


Do you think i can do it like that? Or if you have another approach which is much better? I need to consider clustering in future too because i heard that clustering won't work if there is multi threading.

thanks for sharing your ideas,

-HL

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points