You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brian <bb...@yahoo.com> on 2010/12/02 20:52:03 UTC

How to schedule events on Tomcat?

Hi,
 
I have a regular app in my Tomcat server, based on the request/response paradigm. 
 
I need some processes tu run at some specific intervals, lets say after 30 minutes of some events, or maybe every 30 minutes. Is there a way to do that on Tomcat, to schedule events?
 
I don't want to try tying this process to the requests, because it would make them run slower, and it would run twice at the same time if two requests arrive almous simultaneously.
 
 
 
Thanks,
 
 
 
Brian
 
 
 
 

RE: How to schedule events on Tomcat?

Posted by Brian <br...@gmail.com>.
Thanks!

> -----Original Message-----
> From: David kerber [mailto:dckerber@verizon.net]
> Sent: Thursday, December 02, 2010 05:05 PM
> To: Tomcat Users List
> Subject: Re: How to schedule events on Tomcat?
> 
> On 12/2/2010 3:17 PM, Joseph Morgan wrote:
> > Why can't you use process scheduling of your OS?
> >
> > -----Original Message-----
> > From: Brian [mailto:bbprefix-tomcat@yahoo.com]
> > Sent: Thursday, December 02, 2010 1:52 PM
> > To: users@tomcat.apache.org
> > Subject: How to schedule events on Tomcat?
> >
> > Hi,
> >
> > I have a regular app in my Tomcat server, based on the request/response
> paradigm.
> >
> > I need some processes tu run at some specific intervals, lets say after
30
> minutes of some events, or maybe every 30 minutes. Is there a way to do
that
> on Tomcat, to schedule events?
> >
> > I don't want to try tying this process to the requests, because it would
make
> them run slower, and it would run twice at the same time if two requests
> arrive almous simultaneously.
> 
> I use java.util.Timer and java.util.TimerTask for this.
> 
> D
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How to schedule events on Tomcat?

Posted by David kerber <dc...@verizon.net>.
On 12/2/2010 3:17 PM, Joseph Morgan wrote:
> Why can't you use process scheduling of your OS?
>
> -----Original Message-----
> From: Brian [mailto:bbprefix-tomcat@yahoo.com]
> Sent: Thursday, December 02, 2010 1:52 PM
> To: users@tomcat.apache.org
> Subject: How to schedule events on Tomcat?
>
> Hi,
>
> I have a regular app in my Tomcat server, based on the request/response paradigm.
>
> I need some processes tu run at some specific intervals, lets say after 30 minutes of some events, or maybe every 30 minutes. Is there a way to do that on Tomcat, to schedule events?
>
> I don't want to try tying this process to the requests, because it would make them run slower, and it would run twice at the same time if two requests arrive almous simultaneously.

I use java.util.Timer and java.util.TimerTask for this.

D

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: How to schedule events on Tomcat?

Posted by Joseph Morgan <jo...@ignitesales.com>.
Why can't you use process scheduling of your OS?

-----Original Message-----
From: Brian [mailto:bbprefix-tomcat@yahoo.com] 
Sent: Thursday, December 02, 2010 1:52 PM
To: users@tomcat.apache.org
Subject: How to schedule events on Tomcat?

Hi,
 
I have a regular app in my Tomcat server, based on the request/response paradigm. 
 
I need some processes tu run at some specific intervals, lets say after 30 minutes of some events, or maybe every 30 minutes. Is there a way to do that on Tomcat, to schedule events?
 
I don't want to try tying this process to the requests, because it would make them run slower, and it would run twice at the same time if two requests arrive almous simultaneously.
 
 
 
Thanks,
 
 
 
Brian
 
 
 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org