I'm happy to try to fix this problem along these lines, especially if
someone will tell me which mbeans need to be synchronized(?right word?)

1. in ClusterPartition, include

<mbean-ref-list name="Synchronized">
  <mbean-ref-list-element>JBossCluster:service=HANaming</mbean-ref-list-element>
...
</mbean-ref-list>

2. A new mbean interface, ClusterRegistration having the method
registerCluster(ClusterPartition cluster);

3. The mbeans needing synchronization(?) implement this ClusterRegistration
interface, and the current contents (mostly) of their startService method
is moved to registerCluster.

4. ClusterPartition's start method looks like this:

start()
{
--current contents of init
--iterate through synchronizedMBeans collection, calling
mbean.registerCluster(this) (or maybe the HAPartition?)
--current contents of start 
}

Aside from working with the mbean-ref framework, this makes all the
dependencies explicit, and indicates by means of the ClusterRegistration
interface which mbeans need to be present at startup and which can be added
later (if any).

OK?

Thanks
david jencks

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to