1 Reply Latest reply on Dec 5, 2005 6:38 AM by Armenio Pinto

    Timer MBean: different behavior in 4.0.2

    Armenio Pinto Newbie

      Hi there,

      We noticed a difference in the behavior of the JBoss Timer MBean when upgrading from 3.2.3 to 4.0.2. When multiple schedules are programmed for the same instance, the notifications aren't generated simultaneously; one notification it's generated only after the previous handleNotification(...) ends. Is this normal in 4.0.2 or are we making any error?

      The relevant code segments are:


      [mbean code="javax.management.timer.Timer"

      Notification schedule:

      timer.getObjectName(), "addNotification",
      new Object[] { "Timer", "Timer schedule",
      callback, date, new Long(period) },
      new String[] { String.class.getName(),String.class.getName(),
      Object.class.getName(), Date.class.getName(),
      Long.TYPE.getName() });

      Thanks in advance,

      Arménio Pinto