logo       

Re: Exception handling in receivers and listeners: msg#00021

java.javagroups.general

Subject: Re: Exception handling in receivers and listeners

JGroups has callbacks for system events, like views and merging. If you
through an exception in such a callback, JGroups will catch it and log
it, but not propagate it.

The other type of callbacks are methods which can be invoked as a result
of a cluster wide method call. You can throw any type of exception, and
JGroups will propagate them back to the caller

Tim Fox wrote:
> 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
> _______________________________________________
> javagroups-users mailing list
> javagroups-users@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/javagroups-users
>
>

--
Bela Ban
Lead JGroups / Manager JBoss Clustering Group
JBoss - a division of Red Hat


-------------------------------------------------------------------------
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