users@glassfish.java.net

Re: how to start ejb3 timer?

From: NBW <emailnbw_at_gmail.com>
Date: Wed, 4 Mar 2009 14:49:27 -0500

Instantiating it from a ServletContextListener will work just fine.

On Wed, Mar 4, 2009 at 11:54 AM, <glassfish_at_javadesktop.org> wrote:

> is there a good way to start a timer bean on deployment?
>
> currently, i am using a servlet, that makes a local lookup on the bean and
> calls "startup". but, this solution seems a little sketchy and i'm a bit
> concerned that multiple instances of the timer bean might get started.
>
> is there a better way? possibly using a lifecycle module?
>
> thank you
> [Message sent by forum member 'ab11' (ab11)]
>
> http://forums.java.net/jive/thread.jspa?messageID=335103
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>