Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 61874 invoked from network); 6 Aug 2008 19:15:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2008 19:15:58 -0000 Received: (qmail 8169 invoked by uid 500); 6 Aug 2008 19:15:56 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 8135 invoked by uid 500); 6 Aug 2008 19:15:56 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 8124 invoked by uid 99); 6 Aug 2008 19:15:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 12:15:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of david.blevins@visi.com designates 208.42.176.212 as permitted sender) Received: from [208.42.176.212] (HELO g2host.com) (208.42.176.212) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 19:15:00 +0000 Received: from [71.106.104.69] (account dblevins@visi.com HELO [10.0.1.6]) by mailfront1.g2host.com (CommuniGate Pro SMTP 5.1.16) with ESMTPSA id 61615503 for user@geronimo.apache.org; Wed, 06 Aug 2008 14:12:12 -0500 Message-Id: <734FE7FD-2CB0-4202-99A0-F43C42AA1991@visi.com> From: David Blevins To: user@geronimo.apache.org In-Reply-To: <18854304.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: How to create timer for my SLSB? Date: Wed, 6 Aug 2008 12:12:16 -0700 References: <18854304.post@talk.nabble.com> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org On Aug 6, 2008, at 8:57 AM, Beniamin Mazan wrote: > > I got SLSB with method annotated with @Timeout. I want to initialize > _one_ > timer for this bean class on application deploy / start. I got no any > servlets, it's only EJB module with SLSB beans. > > Does Geronimo provide any way to realize functionality as I > described above > ? EJB 3.1 will provide the ability to automatically schedule timers via annotation. Another EJB 3.1 option will be to create the timers in an @Singleton ejb that loads on startup via @Startup. For now, a custom gbean might work. -David