Thanks,

If I got it right, this works perfectly fine as long as the consumer is
also a actor, how about doing this from outside of akka? I mean the
invocation of actor.tell happens outside of the akka?

is it correct to say,If i am sure that my ActorSelection path is correct
(an actor is created with the given name/path) and then may be I just use
the ActorSelection itself.




On Wed, Nov 2, 2016 at 11:15 AM, Justin du coeur <[email protected]> wrote:

> On Wed, Nov 2, 2016 at 1:28 PM, Harinath Mallepally <[email protected]>
> wrote:
>
>> the ActorSystem.stop takes a ActorRef as input and not ActorSelection.
>> Also [1] says we preferable method to communicate with Actor is through
>> ActorRef and not through ActorSelection is this correct?
>>
>
> That's correct.  The key here is the standard "Identify" message, which
> you send to an ActorSelection, and which returns an ActorRef if it actually
> exists.
>
> (Alternatively, you could send your own homebrew message to the Actor,
> using the ActorSelection, and let it stop itself.  Remember that every
> Actor has a "self" member that is its own ActorRef.)
>
> So in *general*, you use ActorSelection to fetch an ActorRef, and then
> ActorRef to actually interact with the Actor.  That isn't required, but it
> tends to be easiest...
>
> --
> >>>>>>>>>> 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 a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/akka-user/_nOT9QbkcbA/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

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