-
1. Re: Scheduler Thread question
koen.aers Oct 25, 2005 8:31 AM (in response to jnjintc)Adam,
I would indeed not recommend this. The only generic tool you have for starting threads in a J2EE container is by spawning it off when a servlet starts. EJB's should not spawn threads, becaus you don't have direct control over their lifecycle.
The alternatives you have are either writing a standalone Java application that spawns a thread and polls the database and then maybe install this application as a system service or using the non-standard services that a J2EE container, such as JBoss AS, provide to run services.
Regards,
Koen -
2. Re: Scheduler Thread question
jnjintc Oct 25, 2005 11:21 AM (in response to jnjintc)Thanks.
Would a JBoss JMX MBean work to start and stop the scheduler ?
If so, isn't JMX considered a standard ?
thanks,
Adam -
3. Re: Scheduler Thread question
koen.aers Oct 25, 2005 11:39 AM (in response to jnjintc)This would indeed work. But the JBoss MBean mechanism, though using the JMX standard, is not at all a 'standard'.
Regards,
Koen