Amit,

As a pool router is the parent of the routees it creates, you could simply use 
`context.parent` from within a routee to get the router. Then you could use the 
`Broadcast` envelope to send a message from one routee to all others. Of course 
you can then use the sender reference to talk to the other routess directly. 
With this approach you don't have to use any paths or look-ups.

Hoping this helps.

Heiko


On 25 Aug 2014, at 21:36, Amit Kalfus <[email protected]> wrote:

> Hi,
> 
> I'm currently using an ClusterRouterPool, with an instance on each node, 
> which creates somthing in the form of: 
> "/user/ClusterRouterPoolName/c1"..."/user/ClusterRouterPoolName/c2" etc.
> 
> and inside this instances I create several actors. 
> 
> My question is: what is the best way to communicate between this actors, 
> which are inside the same 'c' actor?
> 
> I don't want to use a relative path, since it may be updated/changed with the 
> evolution of my product, and may not be aligned on all actors. but if I 
> didn't had the c1..k in the path,
> I could just use the local path "/user/ClusterRouterPoolName/myTargetActor", 
> without resolving the cluster naming I use.
> 
> Is it safe to say that the local instance of the pool will always be with the 
> numbering of '1'?
> 
> thanks in advanced.
> 
> Amit
> 
> -- 
> >>>>>>>>>> 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