[jboss-dev-forums] [Design of Clustering on JBoss] - Re: JBAS-5703 - Make HA-JNDI use wait for first positive res

galder.zamarreno@jboss.com do-not-reply at jboss.com
Tue Apr 7 06:24:05 EDT 2009


The moment I have a reponse that matches the following statement, I don't need any more responses. No need to keep list of responses.

lookupSucceeded = (response != null) && !(response instanceof Exception) && !(response instanceof NoHandlerForRPC);

Hence, currently my only state is a boolean arising from that statement and in needMoreResponses(), all I do is return:

return !(lookupSucceeded);

Hence, having response and address in needMoreResponses() would avoid me having to cache that boolean because right now, I only have access to the response in isAcceptable.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223978#4223978

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223978



More information about the jboss-dev-forums mailing list