Return-Path: Delivered-To: apmail-incubator-geronimo-dev-archive@incubator.apache.org Received: (qmail 18776 invoked by uid 500); 15 Aug 2003 00:08:35 -0000 Mailing-List: contact geronimo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: geronimo-dev@incubator.apache.org Delivered-To: mailing list geronimo-dev@incubator.apache.org Received: (qmail 18761 invoked from network); 15 Aug 2003 00:08:35 -0000 Received: from mail00.svc.cra.dublin.eircom.net (159.134.118.16) by daedalus.apache.org with SMTP; 15 Aug 2003 00:08:35 -0000 Received: (qmail 94682 messnum 1836958 invoked from network[194.125.184.169/p184-169.as1.snd.dublin.eircom.net]); 15 Aug 2003 00:08:41 -0000 Received: from p184-169.as1.snd.dublin.eircom.net (HELO dehora.net) (194.125.184.169) by mail00.svc.cra.dublin.eircom.net (qp 94682) with SMTP; 15 Aug 2003 00:08:41 -0000 Message-ID: <3F3C2486.5070700@dehora.net> Date: Fri, 15 Aug 2003 01:08:38 +0100 From: =?ISO-8859-1?Q?Bill_de_h=D3ra?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-gb, en, en-us MIME-Version: 1.0 To: geronimo-dev@incubator.apache.org Subject: Re: Timer Service References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Aaron Mulder wrote: > On Thu, 14 Aug 2003, Jeremy Boynes wrote: > >>Please review the spec in detail - the EJB Timer Service has requirements >>for persistent timers and IIRC notifications for events that happened when >>the server was down. > > > True, but I think we could write something simple using a file for > persistence and java.util.Timer if we wanted to meet the minimum > requirements. There is no facility in the spec for cron-style scheduling > -- the only scheduling options are millisecond offsets, IIRC. Granted, we > could certainly integrate a fancier package and offer more "value added" > features. I'm trying to say I don't think we *need* to go there unless we > want to. The only real downside to Timer it is the API. You have to cache a ref to the TimerTask to cancel it later - you can't just ask the Timer to cancel a task of a given name. You also can't pause or alter the schedule a TimerTask, but that's just a matter of doing cancel() and reschedule() against a cached ref. A Timer can be wrapped with any extra functionality later and it would save you writing the core scheduler from scratch. I wouldn't bother not using java.util.Timer. Bill de h�ra