Hi Sean,

creating child actors is something only the parent can do, and that is an 
“active” thing to do, so the parent by definition knows all its children. 
Writing code external to the actual Actor that needs to respond to these 
actions seems like a hack around a wrong design choice to me.

Regards,

Roland

29 jul 2014 kl. 14:51 skrev Sean Zhong <[email protected]>:

> The child's path is not known. 
> 
> I want get notified when a new child come up no matter what the path is. 
> 
> On Monday, July 28, 2014 2:48:28 PM UTC+8, 09goral wrote:
> use context.watch(ActorRef) to register for chaning of actor's life cycle.
> 
> W dniu niedziela, 27 lipca 2014 09:23:14 UTC+2 użytkownik Sean Zhong napisał:
> I cannot change the code of this actor, I want to get notified when there is 
> a child created or stopped, how can this be done?
> 
> There was ActorRegistry, but it was removed in akka 2. 
> (http://doc.akka.io/docs/akka/1.3.1/java/actor-registry.html#ActorRegistry__Finding_Actors)
> 
> 
> 
> 
> -- 
> >>>>>>>>>> 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 http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe – Reactive apps on the JVM.
twitter: @rolandkuhn


-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to