logo       

Exception handling in receivers and listeners: msg#00019

java.javagroups.general

Subject: Exception handling in receivers and listeners

Hi again

In RequestHandler, Receiver, MessageListener or MembershipListener
methods which are invoked by JGroups when some event has occurred, if an
exception is thrown in the handler code, is it proper practice to catch
the exceptions and deal with them locally (log them?).

Or is it permissible to wrap them in a RuntimeException and propagate it
back into JGroups - if this happens - what does JGroups do with the
exception - log it, ignore it or pass it back to the caller? (I guess
passing back to the caller would only make sense for synchronous
invocations made using messsage dispatcher)

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise