Brian - I'm documenting my progress here as I'll be away on vacation when you
return.
The required dependencies are as follows. The dependency states are reversed from your
example.
| <bean name="DistributedReplicantManager" ...
| <property name="HAPartition"><inject bean="HAPartition"
state="Create"/></property>
| <depends>HAPartition</depends>
| </bean>
|
| <bean name="HAPartition" ...
| <property name="distributedReplicantManager"><inject
bean="DistributedReplicantManager"
state="Instantiated"/></property>
| </bean>
|
I've checked in the changes necessary to provide dependency injection and I've
removed the logic that supported usage of ClusterPartition without DI of DRM (as it
appears that was your intent).
This implementation differs from DI of DistributedState where DS was injected into
ClusterPartitionConfig which was then passed into the ClusterPartition constructor. My
implementation injects DRM directly into ClusterPartition as I couldn't resolve the
circular dependencies between DRM and ClusterPartition when injecting into the Config
object. I'm going to revisit this as I may have missed something when trying it
earlier.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072215#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...