-
1. Re: MMB's AttributeChangeNotifaction not received by Listene
dimitris Oct 16, 2004 2:59 PM (in response to gunterze)I believe you right!
Looking inside the code, with XMBeans when the target resource implements NotificationBroadcaster, then the 1st registry of the XMBean is never updated with listeners.
Thinking of possible solutions, ideally the XMBean would forward notification "emitions" to the 2nd registry, but there is no interface to do this (other that trying to cast to NotificationBroadcasterSupport, but there is no guarantee for this).
So the only way is to have both registries updated with listeners.
Could you please, file a bug-report at sourceforge and possibly submit a simplified version of your MBean code, so we can add a test to the JBoss testsuite and I'll fix the bug.
Which JBoss version are you using? -
2. Re: MMB's AttributeChangeNotifaction not received by Listene
gunterze Oct 16, 2004 3:39 PM (in response to gunterze)I am using jboss-3.2.5.
I was wondering, why you have declare in the service descriptor as code attribute of the mbean element. the resource class and not the MMB class. Thinking, that could be a reason, why server.addNotifiactionListener() add the handler into the listener registry of the resource instead of the MMB, I tried
<mbean code=" org.jboss.mx.modelmbean.XMBean" ..
but that did not work.
Ok, I will file a bug report with a code sample @ sourceforge.
Regards,
gunter