http://doc.akka.io/docs/akka/2.4.2/scala/remoting.html#Creating_Actors_Remotely
On Fri, Apr 1, 2016 at 12:05 PM, Jayesh Jadhav <[email protected]> wrote: > Hi, > > Is it possible to supervise remote actors? Since faults should be > contained, asynchronously signaled and managed, will an exception thrown in > the onReceive of a child actor be received in supervisor's strategy's apply() > method? If yes, how are the exceptions propagated over the network? > > 1. public class Child extends UntypedActor { > 2. int state = 0; > 3. > 4. public void onReceive(Object o) throws Exception { > 5. if (o instanceof Exception) { > 6. throw (Exception) o; > 7. } else if (o instanceof Integer) { > 8. state = (Integer) o; > 9. } else if (o.equals("get")) { > 10. getSender().tell(state, getSelf()); > 11. } else { > 12. unhandled(o); > 13. } > 14. } > 15. } > > Thank you, > Jayesh J. > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Cheers, √ -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
