ok, first part of the problem i got working :
It works perfect if i place the war file in deploy-hasingleton folder.....application is deployed on master and not on slave. If the master node goes down, the slave gets notified and the applicaiton is then deployed on the slave node.
Now, the second part of problem (still unanswered):
- I need the service to be running on both the nodes (master and slave). Only if the master goes down, the slave should get a callback to start the service. Complete deployment should happen when the nodes start and not wait for master to go down.
Appreciate if someone can share any experience/thoughts related to this.
Just for information of all:
I had to finally use the shoal framework to meet the requirements.