0 Replies Latest reply on Apr 15, 2007 6:20 AM by Lu Li

    EJB Timer service

    Lu Li Newbie

      Hello,

      I want to set a timer and a method to be invoked when timer expires periodically. When I have a session bean's method annotated with @Timeout, that method keeps being invoked repeatedly when Jboss starts up, even before the code create a Timer using TimerService. Is there a default timer created somewhere in Jboss and that timer is global, i.e any @Timeout method of any session bean would be called when the default timer expires? Also, it seems the period of invoking the method is about 10 seconds as I observed on my system.
      Could someone help explain how timer should be set up and used in Session bean?

      Thanks a lot,
      LNgo