Shouldn't the following code result in the
addNotificationListener(listener, filter, handback) method of the target
MBean being called?

  server.addNotificationListener(target, this, null, null);


For whatever reasons it doesn't. The following works, however:

  server.invoke(target, "addNotificationListener",
    new Object[] { this, null, null },
    new String[] {
      "javax.management.NotificationListener",
      "javax.management.NotificationFilter",
      "java.lang.Object" });


Must be doing something wrong, any ideas?


--
Eric Jain



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to