-
1. Re: HA singleton service with JPA binding
jorgemoralespou_2 Feb 11, 2015 3:07 PM (in response to jokser)1 of 1 people found this helpfulWithout 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.
-
2. Re: HA singleton service with JPA binding
jokser Feb 12, 2015 6:36 AM (in response to jorgemoralespou_2)Thank you.
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?
-
3. Re: HA singleton service with JPA binding
igarashitm Feb 13, 2015 11:19 AM (in response to jokser)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:
Clustering Changes in WildFly 8
It looks you need to implement MSC service to achieve it, but is still worth to try IMHO.
hth,
Tomo