Hi Eric, Do you have an example, there are "a few" tests for this in the testsuite. :-)
If this is a modelmbean? It will handle the registration. The modelmbean won't intercept the addNotificationListener exposed as a managed operation on your resource. client->server->modelmbean (addNotificationListener) client->server->modelmbean->resource (invoke) Regards, Adrian xxxxxxxxxxxxxxxxxxxxxxxx Adrian Brock Director of Support Back Office JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Eric Jain > Sent: 20 June 2003 13:33 > To: jboss-user > Subject: [JBoss-user] MBeanServer addNotificationListener > > > 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 > ------------------------------------------------------- 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
