[JBoss-user] [Management, JMX/JBoss] - Re: Barrier Service and Static SingletonMBean

2005-09-07 Thread milmber
Further investigation shows that the BarrierService is not receiving any 
notifications from my static singleton MBean although the subscription seems to 
succeed:



  | DEBUG [org.jboss.system.BarrierController] Creating 
jboss:service=BarrierController
  | DEBUG [org.jboss.system.BarrierController] Parsing subscription 
specification
  | DEBUG [org.jboss.system.BarrierController] [SubscriptionInfo { 
objectName='promail:service=SchedulingService', handback=True, [EMAIL 
PROTECTED] }, SubscriptionInfo { 
objectName='promail:service=SchedulingService', handback=False, [EMAIL 
PROTECTED] }]
  | DEBUG [org.jboss.system.BarrierController] Subscribing for JMX 
notifications, dynamic=true
  | DEBUG [org.jboss.system.BarrierController] Subscribed to: { 
objectName='promail:service=SchedulingService', 
listener='jboss:service=BarrierController', handback=True, [EMAIL PROTECTED] }
  | DEBUG [org.jboss.system.BarrierController] Subscribed to: { 
objectName='promail:service=SchedulingService', 
listener='jboss:service=BarrierController', handback=False, [EMAIL PROTECTED] }
  | DEBUG [org.jboss.system.BarrierController] Subscribed to 
MBeanServerDelegate, too
  | DEBUG [org.jboss.system.BarrierController] Created 
jboss:service=BarrierController
  | DEBUG [org.jboss.system.BarrierController] Starting 
jboss:service=BarrierController
  | DEBUG [org.jboss.system.BarrierController] Started 
jboss:service=BarrierController
  | 


Is there something else I need to other than extend ServiceMBeanSupport in my 
implementation class?

Do standard MBeans actually emit AttributeChangeNotifications or just XMBeans?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3893381#3893381

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3893381


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Barrier Service and Static SingletonMBean

2005-09-07 Thread [EMAIL PROTECTED]
The issue here is, I don't think you can count on the AttributeValueChange 
(AVC) from your Scheduling service (that is if you extend ServiceMBeanSupport), 
because it's going to be started anyway when you deploy it.

The HASingletonController will invoke startSingleton/stopSingleton on your 
service, and you can emit a pair of notifications there to indicate this fact, 
then you intercept those in the BarrierController.

The hankback object is provided by whoever makes a subscription, to allow him 
to distinguish from which subscription a notification comes (because you can 
have many subscritpions). It has nothing to do with the Notification itself.

What I see here, this is a very good use case and if we make the 
HASingletonController emit alternatively notifications, rather than invoke 
callback (e.g. through a config option), we can then just attach a Barrier and 
have any number of mbeans to depend on that...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3893383#3893383

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3893383


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user