Hi Mutaz, 

I have posted the same answer on SO where you also asked the same question:
http://stackoverflow.com/questions/34661417/overriding-balancing-pool-router-supervisor-strategy-doesnt-work

Cheers
--
Johan Andrén
Typesafe -  Reactive apps on the JVM
Twitter: @apnylle

On Thursday, January 7, 2016 at 12:24:12 PM UTC+1, Mutaz Qasem wrote:
>
> My worker code:
>
> def receive = {
>   case msg =>
>     throw new Exception("Test exception escalation")
>
> }
>
>
> My controller (parent) code:
>
>
> val strategy = OneForOneStrategy() {
>
>   case _: Exception  => Escalate
>
>   case _             => Escalate
>
> }
>
>
> val router: ActorRef =
>   
> context.actorOf(Props[Worker].withRouter(FromConfig().withSupervisorStrategy(strategy)),
>  name = "router")
>
>
> def receive = {
>   case ex: Exception =>
>
>     log.info(ex.toString)
>
> }
>
>
> However, whenever I send a message to worker, it restarts instead of 
> escalating to parent. Seems like overriding is not working.
>
>
> Any idea please? Thanks!
>
>

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

Reply via email to