Yes, create an Actor that's responsible for watching the other one.

You could build something that hides the "make an Actor" from the developer 
using that pattern, i.e. it'd complete a future or something, however there 
needs to be an Actor involved in the watching (even if hidden away).

-- 
Cheers,
Konrad `ktoso` Malawski
Akka @ Typesafe

On 1 September 2015 at 16:24:17, Magnus Andersson 
([email protected]) wrote:

Hi

I got a question I could not answer so I'd like to get some input.
Developer needs to communicate with a remote actor
ActorSystem is created and the an actor selection is made directly on the actor 
system against the remote actor
Now he wants to add death watch to detect that the remote actor died, but there 
is no actor to which the Terminated message can be sent.
Is there a way to do death watch from outside an actor or is the only way to 
create an actor client where you do the actor selection and the deathwatch?

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

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