This content has been marked as final.
Show 2 replies
-
1. Re: How to implement get/setDistributedState?
slaboure May 28, 2004 5:55 AM (in response to timdrisdelle)I would instead use the DistributedState service: no need to implement anything, just use it as is, very convenient to share configuration accross a cluster.
cheers,
sacha -
2. Re: How to implement get/setDistributedState?
timdrisdelle May 28, 2004 12:08 PM (in response to timdrisdelle)My mbean extends HASingletonSupport, which extends HAServiceMBeanSupport.
The HAServiceMBeanSupport class has two "convenience" methods called getDistributedState and setDistributedState, which both delegate to the DistributedStateService.
Therefore, I should be able to call getDistributedState and setDistributedState from within my mbean.
My question is really, how and when do I make these calls? Do I still need individual getters and setters for my runtime configuration properties, each of which will call get/setDistributedState?
Tim