3 Replies Latest reply on Jan 6, 2005 2:16 AM by Gerald Quintana

    Timer interval duration not respected

    Gerald Quintana Newbie

      Dear JBoss 4.0 users,

      I have created 2 Timer session beans. They should be executed every minute (inteval duration = 60000). But when I look at the logs, these timers are executed twice per minute! Here are the logs:

      09:57:37,156 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online
      09:58:33,328 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online
      09:58:33,390 INFO [EvenementsPrevTimerBean] Traitement ÚvÚnements prÚvisionnels
      09:58:37,109 INFO [EvenementsPrevTimerBean] Traitement ÚvÚnements prÚvisionnels
      09:58:37,156 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online
      09:59:33,328 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online
      09:59:33,421 INFO [EvenementsPrevTimerBean] Traitement ÚvÚnements prÚvisionnels
      09:59:37,109 INFO [EvenementsPrevTimerBean] Traitement ÚvÚnements prÚvisionnels
      09:59:37,156 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online
      10:00:33,328 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online
      10:00:36,015 INFO [EvenementsPrevTimerBean] Traitement ÚvÚnements prÚvisionnels
      10:00:37,109 INFO [EvenementsPrevTimerBean] Traitement ÚvÚnements prÚvisionnels
      10:00:37,203 INFO [UtilisateursOnlineTimerBean] Traitement utilisateurs online


      I have checked the Timers table in the HSQL database, there are 2 rows
      1 [target=jboss.j2ee:jndiName=ejb/evenements/EvenementsPrevTimer,service=EJB] 2004-12-01 00:00:00.0 60000 [B@6bd4a9
      1 [target=jboss.j2ee:jndiName=ejb/gestionUtilisateurs/UtilisateursOnlineTimer,service=EJB] 2004-12-01 00:00:00.0 60000 [B@156b6f3

      You can see that interval is properly set to 60000. They have both the same ID set to 1, is it normal?

      I noticed that when I stopped JBoss, I got the following warning:
      10:19:17,546 WARN [GeneralPurposeDatabasePersistencePlugin] Unable to remove timer for: 1

      What is this?

      Can you explain me what's happening please?
      Thanks for your help,
      Gerald