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

TimerServiceTimerService.getTimers() returns not only the associated timer entries for the current Bean

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 10.0.0.CR1
    • None
    • None
    • None
    • Hide
      • create two EJB's with a @Timeout
      • add a method start and use getTimers() to cancle all and start a new one
      • use a @Singleton to invoke the start method for both
      • invoke the second start() see and cacnle the first already created timers!
      Show
      create two EJB's with a @Timeout add a method start and use getTimers() to cancle all and start a new one use a @Singleton to invoke the start method for both invoke the second start() see and cacnle the first already created timers!

    Description

      According to the spec [1] the getTimers() method must only return timers associated to the current EJB.
      This is a huge issue if timers are cancled by this collection as it will remove all timers!

      [1] https://docs.oracle.com/javaee/6/api/javax/ejb/TimerService.html#getTimers%28%29

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            rhn-support-wfink Wolf Fink
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: