You can have potentially a MBean that listens to membership view change and send out notification accordingly. Of course, this is just one scenario.
Ok Thanks. I have tested with 2 jboss instances in the same maching with different ports. The notification to the nodes is working well if the master goes down. Is it possible to restart the master node automatically if any out of memory error/some other exception occurs?
Kindly help me..