|
Re: Exception handling in receivers and listeners: msg#00036java.javagroups.general
Bela Ban wrote: > 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 Just to clarify. So if I throw an exception in a RequestHandler::handle() method or Receiver::receive() method then it will get propagated back to the thread that either invoked MessageDispatcher::castMessage() or Channel::send()? Bela, you say I can throw any exception but the signature of the methods are not declared to throw any exceptions, so I assume you mean I can throw any *unchecked* exception? > > 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 >> >> > ------------------------------------------------------------------------- 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> |
|---|---|---|
| Previous by Date: | Re: multicast ping, Bela Ban |
|---|---|
| Next by Date: | Multicast not binding to bind_addr, James Wilson |
| Previous by Thread: | Re: Exception handling in receivers and listeners, Bela Ban |
| Next by Thread: | Re: Exception handling in receivers and listeners, Bela Ban |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |