struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject Re: Running a heartbeat program in struts.
Date Sun, 02 Feb 2003 00:14:16 GMT
Why do you need Struts to do this?

David






>From: "Ron Day" <ronday@ronday.cc>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>Subject: Running a heartbeat program in struts.
>Date: Sat, 1 Feb 2003 23:46:58 -0600
>
>I am planning on putting a small heartbeat program as part of my Struts
>application. The heartbeat program will request HTTP headers from an
>external web server every 5 minutes or so, and if the response is not a
>200,will send email to 3 people.
>
>I plan on using a java class that starts a thread in the init method of the
>controller servlet. This thread will sleep for 5 minutes between sending
>requests to the external web server. It in turn will call a custom
>mail-sending class if the response is not 200.
>
>First, does anyone have any code like this, before I start coding,
>Second, any comments on my approach,
>Third, is there a better way (in Java of course).
>
>Thanks for any comments you have
>
>Ron
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message