Re: Timing service in Tomcat

2004-05-13 Thread Tim Kelly
Sasha,

We wanted to reuse our business java code for our batch runs so we 
implemented a cron job with issued a lynx command such as lynx 
http://webxx/servlet/batch?batch=2&date=05/13/04. We run our production 
environment in linux  so lynx was available by default.

Tim

Mats Henrikson wrote:

Sasha,

If you are used to unix cron and the format of crontabs, then you might
also want to have a look at JCronTab (http://jcrontab.sourceforge.net/),
which is supposed to work pretty well with Tomcat (have a look at the
first FAQ entry...).
Mats

On Wed, 2004-05-12 at 16:33, Sasha Borodin wrote:
 

I'm wondering what people are doing to schedule/execute tasks in Tomcat...

Is there any built-in timing services in Tomcat?  Are people using external
operating system tools like cron to invoke a class, or hit a servlet?
Is anyone using a good 3rd party scheduling framework?

Or is this kind of stuff home-grown right now (java.util.Timer, etc.)?  If
you've got your own timer, where do you initialize it (like in a servlet's
init() or a context listener)?
Thank you,

-Sasha



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Timing service in Tomcat

2004-05-12 Thread Mats Henrikson
Sasha,

If you are used to unix cron and the format of crontabs, then you might
also want to have a look at JCronTab (http://jcrontab.sourceforge.net/),
which is supposed to work pretty well with Tomcat (have a look at the
first FAQ entry...).

Mats

On Wed, 2004-05-12 at 16:33, Sasha Borodin wrote:
> I'm wondering what people are doing to schedule/execute tasks in Tomcat...
> 
> Is there any built-in timing services in Tomcat?  Are people using external
> operating system tools like cron to invoke a class, or hit a servlet?
> 
> Is anyone using a good 3rd party scheduling framework?
> 
> Or is this kind of stuff home-grown right now (java.util.Timer, etc.)?  If
> you've got your own timer, where do you initialize it (like in a servlet's
> init() or a context listener)?
> 
> Thank you,
> 
> -Sasha
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Timing service in Tomcat

2004-05-12 Thread Shapira, Yoav

Hi,
Quartz and Flex are good.  They may be overkill though, depending on
your needs.  Java.util.Timer is perfectly fine as well.  Where to
initialize also depends on your needs, but a Servlet's init or a
ServletContextListener's contextInitialized are two candidate locations.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: James Neville [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, May 12, 2004 11:40 AM
>To: Tomcat Users List
>Subject: Re: Timing service in Tomcat
>
>Sasha,
>
>Sasha Borodin wrote:
>
>>Is anyone using a good 3rd party scheduling framework?
>>
>Have a look at:
>http://www.quartzscheduler.org/quartz/(h its moved to
>OpenSymphony!)
>
>We're using this in part with some in-house stuff.
>It works well; I actually can't think of any other open -source
>component that's comparable.
>
>>
>>Or is this kind of stuff home-grown right now (java.util.Timer, etc.)?
If
>>you've got your own timer, where do you initialize it (like in a
servlet's
>>init() or a context listener)?
>>
>
>For the custom stuff, we have a seperate servlet for each job/task
>(java.util.Timer), and a reference is stored to them in the application
>context, for admin purposes.
>We start each Timer from a single Startup servlet, which gets the
>majority of its parameters from the web.xml file (ideally, i'd rather
>this was seperated).
>
>If you have any more questions, shoot,  i'll try and answer as best I
can.
>
>James.
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Timing service in Tomcat

2004-05-12 Thread James Neville
Sasha,

Sasha Borodin wrote:

Is anyone using a good 3rd party scheduling framework?

Have a look at:
http://www.quartzscheduler.org/quartz/(h its moved to OpenSymphony!)
We're using this in part with some in-house stuff.
It works well; I actually can't think of any other open -source 
component that's comparable.

Or is this kind of stuff home-grown right now (java.util.Timer, etc.)?  If
you've got your own timer, where do you initialize it (like in a servlet's
init() or a context listener)?
For the custom stuff, we have a seperate servlet for each job/task 
(java.util.Timer), and a reference is stored to them in the application 
context, for admin purposes.
We start each Timer from a single Startup servlet, which gets the 
majority of its parameters from the web.xml file (ideally, i'd rather 
this was seperated).

If you have any more questions, shoot,  i'll try and answer as best I can.

James.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Timing service in Tomcat

2004-05-12 Thread Mike Curwen
I like quartz.
 
www.opensymphony.com/quartz

> -Original Message-
> From: Sasha Borodin [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 12, 2004 10:33 AM
> To: Tomcat Users List
> Subject: Timing service in Tomcat
> 
> 
> I'm wondering what people are doing to schedule/execute tasks 
> in Tomcat...
> 
> Is there any built-in timing services in Tomcat?  Are people 
> using external operating system tools like cron to invoke a 
> class, or hit a servlet?
> 
> Is anyone using a good 3rd party scheduling framework?
> 
> Or is this kind of stuff home-grown right now 
> (java.util.Timer, etc.)?  If you've got your own timer, where 
> do you initialize it (like in a servlet's
> init() or a context listener)?
> 
> Thank you,
> 
> -Sasha
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Timing service in Tomcat

2004-05-12 Thread Sasha Borodin
I'm wondering what people are doing to schedule/execute tasks in Tomcat...

Is there any built-in timing services in Tomcat?  Are people using external
operating system tools like cron to invoke a class, or hit a servlet?

Is anyone using a good 3rd party scheduling framework?

Or is this kind of stuff home-grown right now (java.util.Timer, etc.)?  If
you've got your own timer, where do you initialize it (like in a servlet's
init() or a context listener)?

Thank you,

-Sasha



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]