Word has it you're not supposed to use threads in an
EJB. I have a task that I want to run from an app server (in my case
JBoss) a limited number of time in parellel. For instance, 4 at once, but not more than 4 since that would overwelme the server. These tasks can each take up to 30 seconds, and I need to design this so it can deal with 1000 or so sitting in a queue waiting to be run. (A little quick math says the jobs at the tail end may wait up to 8 or so hours before being run.)
I would like to run this inside the app server, since that's where all the business logic and method that will be called already resides, as opposed to running some external application.
Thoughts?
-Pete
<a href="http://www.budget-ha.com">Budget High Availability</a>