anakin volpy wrote:Hey Mark,
Thanks for the response. These beans are not necessarily holding state; we had this type of solution in mind to scale the application without spawning multiple threads. These beans are essentially working service beans. They are constantly running doing background work. I guess you could think of them being in an infinite loop. We were then thinking of wrapping these beans with JMX for management/monitoring.
That is cool. I am still not sure that you need to make more than one of them.
How does it get called?
Have you looked at @Scheduled if it is based on CRON or something like that.
Or @Async, which on the method would mean everytime it is called it starts up its own
thread, so you don't have to spawn those threads yourself.
Mark