Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8457

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 11.0.0.Beta1
    • 11.0.0.Alpha1
    • EJB
    • None

      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.

        1. TimerBean.java
          1 kB
          Ingo Weiss

            rhn-support-iweiss Ingo Weiss
            rhn-support-iweiss Ingo Weiss
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: