Two jboss servers running, a distributed cache is shared between them and they add data to it. Both have simultaneous threads reading and processing data from the cache.
I need to ensure that data is fetched from both servers sequentially.
Solution : Run both nodes and using HASingleton mode of clustering, only the master node processes data. As and when the master goes down, slave gets notified and starts processing.
Problem : Reading through lots of articles, i learned that in HA singleton clustering, only one node has the war or application deployed. Second node deploys the application only when the first or master dies.
I dont want that case. I need both nodes up and running, but only master doing the processing of messages. Cannot afford any downtime.