Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9721

TimerService.getTimers() does not return persisted timers in @PreDestroy method

XMLWordPrintable

      Injecting the TimerService with an @Resource annotation

      @Resource
      private TimerService timerService;

      When I call timerService.getTimers().size() in the @PreDestroy method, it always return 0.

      If I deploy the same application in jboss eap 6, then timerService.getTimers().size() return 1.

            rhn-support-iweiss Ingo Weiss
            rhn-support-rpulluru Ranjith Pulluru (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Time Spent - 1 hour Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - 1 hour Remaining Estimate - 1 day Time Not Required
                1h