users@glassfish.java.net

RE: Creating a timer

From: Dru Devore <ddevore_at_duckhouse.us>
Date: Thu, 13 Nov 2008 11:57:14 -0700

I am using an EJB timer, love it BTW. I did my initialization in an
initialization servlet. It works well for me.

> -------- Original Message --------
> Subject: Re: Creating a timer
> From: glassfish_at_javadesktop.org
> Date: Thu, November 13, 2008 1:02 pm
> To: users_at_glassfish.dev.java.net
>
>
> Timer creation isn't allowed in PostConstruct of stateless session beans or message-driven
> beans because the component lifecycle isn't a good fit for it. The container can create any
> number of bean instances at any time, each of which would result in a new timer.
>
> You'll need to move the timer creation to a business method. In EJB 3.1, we'll be adding a
> way to have timers created automatically as a result of deployment.
> [Message sent by forum member 'ksak' (ksak)]
>
> http://forums.java.net/jive/thread.jspa?messageID=316607
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net