users@glassfish.java.net

Re: scheduled method stops running

From: Glenn Holmer <gholmer_at_weycogroup.com>
Date: Fri, 01 Oct 2010 13:27:17 -0500

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?

> 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
>
>

-- 
____________________________________________________________
Glenn Holmer                          gholmer_at_weycogroup.com
Software Engineer                        phone: 414-908-1809
Weyco Group, Inc.                          fax: 414-908-1601