Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5166

Timerservice.getTimers() does not return persisted timers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • JBossAS-5.0.1.GA
    • JBossAS-4.2.2.GA
    • EJB
    • None

    Description

      I'm injecting the TimerService with an @Resource annotation inside a JMX bean:

      @Resource
      private TimerService timerService;

      When I call timerservice.getTimers().size() in the start() method of the JMX, it always return 0.
      If I schedule a new timer inside the JMX, then timerService.getTimers().size() return 1.

      I saw a similar bug previously (JBAS-1394) that was supposedly fixed in JBossAS-4.0.4RC1

      I'm not sure if anything changed in this regard, but I would think it should be possible to retrieve persisted timers in order to cancel them if necessary

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-cdewolf Carlo de Wolf
              degerhar_jira Gerhard (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: