[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: scheduler servlet
Or just use cron or windows task scheduler to execute a main() method on
some bogus class.
The only reason why ColdFusion has that scheduler is that you can't run CF
scripts outside of the server engine. In Java you can do this.
BAL
>From: "Nedim Colic" <nedim@yahoo.com>
>To: <ajug-members@www.ajug.org>
>Subject: RE: scheduler servlet
>Date: Thu, 28 Feb 2002 10:06:27 -0500
>MIME-Version: 1.0
>Received: from [66.45.18.180] by hotmail.com (3.2) with ESMTP id
>MHotMailBE479511002540042A15422D12B4969F0; Thu, 28 Feb 2002 07:17:49 -0800
>Received: (from list@localhost)by ajug.org (8.11.2/8.11.2) id
>g1SGP1I21700;Thu, 28 Feb 2002 11:25:01 -0500
>From ajug-members-request@ajug.org Thu, 28 Feb 2002 07:18:54 -0800
>Resent-Date: Thu, 28 Feb 2002 11:25:01 -0500
>Message-ID: <JKENLPGJOHCPKBGCPKNGIEOKCAAA.nedim@yahoo.com>
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>Importance: Normal
>In-Reply-To: <20020228143752.29005.qmail@web10801.mail.yahoo.com>
>Resent-Message-ID: <ctyjK.A.-SF.dnlf8@ajug.org>
>Resent-From: ajug-members@ajug.org
>X-Mailing-List: <ajug-members@ajug.org> archive/latest/6
>X-Loop: ajug-members@ajug.org
>List-Post: <mailto:ajug-members@ajug.org>
>List-Help: <mailto:ajug-members-request@ajug.org?subject=help>
>List-Subscribe: <mailto:ajug-members-request@ajug.org?subject=subscribe>
>List-Unsubscribe:
><mailto:ajug-members-request@ajug.org?subject=unsubscribe>
>Precedence: list
>Resent-Sender: ajug-members-request@ajug.org
>
>Why does it have to be a servlet? Servlets are transient by their nature
>and
>making a scheduler out of one is not impossible but it's not natural. You
>could just write a small application that uses java.util.TimerTask and
>schedule it to run whatever you want. Or if it's that important, make a
>singleton class that will run inside web server and use TimerTask to
>schedule events.
>
>Nedim.
>
>-----Original Message-----
>From: Zhou Kathy [mailto:vkathy1211@yahoo.com]
>Sent: Thursday, February 28, 2002 9:38 AM
>To: ajug-members@www.ajug.org
>Subject: scheduler servlet
>
>
>I need some hints here.
>In the cold fusion, we are able to set up a task
>running on schedule, such as running this task
>midnight every day. I am asking if there is any way to
>build a java servlet to make a jsp page running on
>schedule.
>I am using the jrun3.1/Unix and I check the knowledge
>base on the Macromedia site. I could not make the
>servlet work according to the way they suggest on
>article 21708 and 22440.
>The error I got is "no such servlet".
>Could anyone give me some suggestions on it?
>
>Thanks for help.
>
>Kathy
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Greetings - Send FREE e-cards for every occasion!
>http://greetings.yahoo.com
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.