The javax.management.AttributeChangeNotification takes a source equal to the MBean generating the notification, and we are literally using 'this' of the MBean implementation rather than its ObjectName. This seems inconsistent with the decoupled nature of JMX and leads immeadiately to problems with notification distribution as seen in the HAServiceMBeanSupport's attempt to broadcast state changes:

2003-08-03 09:16:23,428 DEBUG [org.javagroups.DefaultPartition] [Sun Aug 3 09:16
:23 PDT 2003] [ERROR] RpcProtocol.callRemoteMethods(): exception=java.io.NotSerializableException: org.jboss.ha.singleton.HASingletonController


callRemoteMethods():148, org.javagroups.blocks.RpcDispatcher, RpcDispatcher.java
callMethodOnCluster():519, org.jboss.ha.framework.server.HAPartitionImpl, HAPartitionImpl.java
callAsyncMethodOnPartition():297, org.jboss.ha.jmx.HAServiceMBeanSupport, HAServiceMBeanSupport.java
sendNotificationRemote():315, org.jboss.ha.jmx.HAServiceMBeanSupport, HAServiceMBeanSupport.java
sendNotification():272, org.jboss.ha.jmx.HAServiceMBeanSupport, HAServiceMBeanSupport.java
start():219, org.jboss.system.ServiceMBeanSupport, ServiceMBeanSupport.java
invoke(), sun.reflect.GeneratedMethodAccessor58
invoke():25, sun.reflect.DelegatingMethodAccessorImpl, DelegatingMethodAccessorImpl.java
invoke():324, java.lang.reflect.Method, Method.java
invoke():284, org.jboss.mx.capability.ReflectedMBeanDispatcher, ReflectedMBeanDispatcher.java
invoke():550, org.jboss.mx.server.MBeanServerImpl, MBeanServerImpl.java
invoke():976, org.jboss.system.ServiceController$ServiceProxy, ServiceController.java
start(), $Proxy39
start():394, org.jboss.system.ServiceController, ServiceController.java


So the question is why are we not using the ObjectName for the source?

--
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx




------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to