run every day at midnight

This commit is contained in:
Athou
2013-07-25 09:19:05 +02:00
parent 8845c54d0c
commit 7da630ed6d

View File

@@ -24,7 +24,7 @@ public class CleaningService {
EntityManager em;
// every day at midnight
@Schedule(hour = "*", minute = "*", persistent = false)
@Schedule(hour = "0", persistent = false)
private void cleanOldStatuses() {
Date threshold = applicationSettingsService.get().getUnreadThreshold();
if (threshold != null) {