2 Replies Latest reply on Jul 3, 2012 8:34 AM by Stefan Maier

    Detecting timeout in JGroup's synchronous Communication

    Stefan Maier Newbie

      Hello,

       

      I'm using JGroup's (version 2.6.10.GA) MessageDispatcher for synchronous cluster-wide communication for certain components in my application. I have specified a timeout in the castMessage method to prevent lockups. What I would like to know is how a timeout can be detected, when it occurs? It seems that no Exception is thrown and I could not find a method in the MessageDispatcher, Channel or RspList where I can determine if a timeout occured or not. RspList::numSuspectedMembers() is also 0. The only way I can think of is to compare RspList::numReceived with JChannel::getView()::size(), but that does not seem very elegant. Is there a better way to do this?