users@glassfish.java.net

Re: timer fires twice at the same time

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Tue, 04 May 2010 15:32:32 -0700

Was it after server restart? Or after deploy?

Glenn Holmer wrote:
> We have a Singleton EJB with a method that uses the @Schedule annotation
> like this:
>
> @Schedule(minute="0,15,30,45",hour="*")
>
> We just saw that one of them fired twice the first time the timer came
> up after GlassFish was started (GlassFish started at 13:20, two sets of
> messages in our log stamped 13:30). What can cause this? Shouldn't the
> @Singleton annotation keep that from happening?
>
>