You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sommeralex <al...@gmail.com> on 2012/07/30 19:48:22 UTC

scheduled services stops - @Scheduled(fixedDelay=1800000)

hi!

I have defined a schedule job within my service class, which seems to STOP
after some calls. 

@Scheduled(fixedDelay=1800000) // 30min 1800000
	public void deleteOutdatedWeatherEntries() {
		System.out.println("clean  cache:" + new Date());
		logger.info("CLEAN-UP TASK: Delete outdated entries.");
		myDAO.deleteEntries();
	}

The console prints every 30min the logger info & System.out.print - but,
after some time, it stops. there is no output anymore and the DB is not
deleted anymore. 

I know that this is a spring issue, but maybe someone has an answer.
instead, i could try the same with @Startup public static void scheduleJobs.

But anyway, i wonder why the service stops.. 



--
View this message in context: http://tapestry.1045711.n5.nabble.com/scheduled-services-stops-Scheduled-fixedDelay-1800000-tp5714882.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: scheduled services stops - @Scheduled(fixedDelay=1800000)

Posted by sommeralex <al...@gmail.com>.
i am no using the chron job. which works.. thx.



--
View this message in context: http://tapestry.1045711.n5.nabble.com/scheduled-services-stops-Scheduled-fixedDelay-1800000-tp5714882p5714914.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: scheduled services stops - @Scheduled(fixedDelay=1800000)

Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
I bet some uncaught exception kills the job...   Just a guess



On Jul 30, 2012, at 12:48 PM, sommeralex <al...@gmail.com> wrote:

> hi!
> 
> I have defined a schedule job within my service class, which seems to STOP
> after some calls. 
> 
> @Scheduled(fixedDelay=1800000) // 30min 1800000
>    public void deleteOutdatedWeatherEntries() {
>        System.out.println("clean  cache:" + new Date());
>        logger.info("CLEAN-UP TASK: Delete outdated entries.");
>        myDAO.deleteEntries();
>    }
> 
> The console prints every 30min the logger info & System.out.print - but,
> after some time, it stops. there is no output anymore and the DB is not
> deleted anymore. 
> 
> I know that this is a spring issue, but maybe someone has an answer.
> instead, i could try the same with @Startup public static void scheduleJobs.
> 
> But anyway, i wonder why the service stops.. 
> 
> 
> 
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/scheduled-services-stops-Scheduled-fixedDelay-1800000-tp5714882.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org