Actually i think you are missing one more ../. I just built a hierarchy
that looks like yours and it works just fine:
//akka/user
 |  \
Jane   John
 |
Foo
 |
Bar
 |
Baz

from Baz I can reach John
val john = context.actorSelection("../../../../John")

Here is what's going on:
>From Baz:
       '../Baz' is to self
       '../../Bar' is to Bar
       '../../../Foo' is to Foo
       '../../../../John' is to John

So, from d1 you should locate C via ../../../../C

Cheers
Oleg




On Mon, Jan 27, 2014 at 5:49 PM, Vladislav Kuzemchik
<nogod.m...@gmail.com>wrote:

> Hi!
>
> I have some problem with understanding how Actor paths should be organized.
>
> For example:
>
> A
>  |  \
> B   C
>  |
> D -- (router)
>  |  \
> d1  d2
>
> From B to C I can access with "../C" or "/user/A/C"
>
> But if we talking about d1 "../../../C" will not work but absolute path
> "/user/A/C" will still work.
>
> And in that case the easy way to say "just use absolute".
>
> But the problem is, my app is distributed, and have remote deployed
> routees and actors. I cannot use absolute.
>
> The real life case is access from one dynamically deployed routee to
> another dynamically deployed routee in distributed system.
> Absolute actor path can be calculated from data sent to routees, but I
> don't know which exactly actor system have it deployed.
>
> How should I organize this?
>
> I saw "cluster::" paths and they looks like solution, but they still in
> development. And I believe there is a good solution with current akka
> features.
>
> Thanks!
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
> >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to