For the record: I was unable to get notifications to work with XMBeans.
Solution: Managed resources *must* extend
NotificationBroadcasterSupport. Implementing NotificationBroadcaster
won't do the trick; see ModelMBeanInvoker line 132 (JBoss 3.2.1).
--
Eric Jain
> 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)
>> 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" });
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user