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

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 11.0.0.Alpha1
    • Fix Version/s: 11.0.0.Beta1
    • Component/s: EJB
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Attachments

          1. TimerBean.java
            1 kB
            Ingo Weiss

            Issue Links

              Activity

                People

                • Assignee:
                  iweiss Ingo Weiss
                  Reporter:
                  iweiss Ingo Weiss
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: