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

    Timer MBean: different behavior in 4.0.2

    apinto

      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:

      jboss-service.xml:

      [mbean code="javax.management.timer.Timer"
      name="Collector:service=AgentSchedulerTimer"/]


      Notification schedule:

      notifid=(Integer)server.invoke(
      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