2007/11/5, Christopher Schultz <[EMAIL PROTECTED]>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ashish,
>
> Ashish Kulkarni wrote:
> > There wont be any user input and this thread should be called after like
> 10
> > minutes, also i want to have a jsp page from where i can maintain this
> > thread, like stop, change the time it should run etc.
> >
> > Are there any specific J2EE api i can use, or should i just use a time
> > thread, and store the handle to this thread in servlet context so i can
> > access and modify it..
>
> Lots of folks use Quartz for this kind of thing. It's a cron-like Java
> API.



Though I think that Quartz is a great product, it is discouraged by the Java
EE specifications to create threads in a webapp.
The curious thing is that there is no a specification on how to create
scheduled processes in Java EE, and every container has its own
implementation, for example Websphere has Work Manager.
So keep in mind that, if you are using Quartz, you are somewhat breaking the
rules, though there is a missing rule :-)

Ciao
Antonio

Reply via email to