I found the issue.

1. Just throwing an exception seems to bypass the BackoffSupervisor 
(unfortunately), which immediately starts the restart loop for the actor 
(not using the backoff) which really stinks
2. The BackoffSupervisor does not do a normal akka *restart* on the actor. 
 Instead, it *completely starts over*.  So the only way to start things up 
is to override *preStart*; *not **postRestart*

Here is what I did:

1. To kick in *BackoffSupervisor* you *must* issue a *self ! PoisonPill* (maybe 
context.stop(self) would work, but PoisonPill triggered properly)
2. The *BackoffSupervisor* listens for *Terminated* and that is how it 
starts up the child
3. The *BackoffSupervisor* starts the child using *context.actorOf; *hence; 
that is why you can only override *preStart*

Unfortunately, to complete normally I am still unclear of what to do, as 
ordered termination like *PoisonPill* or *context.stop(self)* will cause 
the BackoffSupervisor to restart.

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