2 Replies Latest reply on Oct 1, 2002 5:48 PM by Jeffrey Wescott

    Timer and removeNotification

    Anders Lindh Newbie


      When I try to call "removeNotification" on the Timer mbean, I get the following:

      javax.management.ReflectionException: The operation with name removeNotification could not be found

      In my mbean, I do the following:

      getServer().invoke(mTimer, "removeNotification", new Object[] { timer }, new String[] { Integer.TYPE.getName() } );

      where
      mTimer = new ObjectName("DefaultDomain", "service", "timer"),
      and timer is an Integer that I get from addNotification.

      What am I doing wrong? I'm using JBoss-2.4.4.

      Thanks,

      - Anders