1 of 1 people found this helpful
Without giving it much thought I would recommend you to have your services register an event observer, an in in finispan atomic lock and binding startup/shutdown via the binding mbean.
I don't think it's something trivial, but I think can be done.
Hope it helps.
I just thought that I can use some features from Switchyard (e.g. sca-clustered option) to implement this behavior. So do you plan to add a feature as marking service as ha singleton (with some additional options) to Switchyard? Or I must solve every problem associated with clustering and failover by myself?
We don't have any plan to have HA feature in SwitchYard, as we expect that kind of feature would be supported by container. There used to be a ha-singleton service in JBossAS itself, which supports any type of deployment, but on WildFly8 all I could find is this, take a look at "New Singleton Service Builder API" in following link:
It looks you need to implement MSC service to achieve it, but is still worth to try IMHO.