users@glassfish.java.net

Re: scheduled method stops running

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Fri, 01 Oct 2010 11:32:45 -0700

Glenn Holmer wrote:
> On Fri, 2010-10-01 at 10:10 -0700, Marina Vatkina wrote:
>
>> There should be error messages in the log.
>>
>> -marina
>>
>
> We do see that the server was restarted at about that time. What is the
> expected behavior on restart if a @Scheduled method is interrupted while
> it's running?
>

It should be rescheduled, and if it is persistent and it was determined
that there was a missed expiration, it will be redelivered

>
>> Glenn Holmer wrote:
>>
>>> We have a class with two methods that are annotated with @Schedule.
>>> One of them (minute="*",hour="2-15"), stopped running for no apparent
>>> reason and didn't start up again even after we restarted Glassfish.
>>>
>>> Does anybody have any suggestions where I should look to find out why?
>>> There are logging statements at the top of the method, so we'd know if
>>> it were being called; there are no exceptions in the log either.
>>>
>>> This is with GlassFish 3.0.1 on Linux.
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>>
>
>