It is using a convention to make things easy for the normal case. However,
I think it will work if you specify singletonName in the
ClusterSingletonProxySettings.
ClusterSingletonProxySettings proxySettings =
ClusterSingletonProxySettings.create(system).withSingletonName("singleton/ITS_CHILD");
ActorRef singletonProxy =
system.actorOf(ClusterSingletonProxy.props("/user/MY_CLUSTERED_SINGLETON",
proxySettings);
Cheers,
Patrik
On Fri, Feb 5, 2016 at 10:27 PM, <[email protected]> wrote:
I have a ClusteredSingleton, that supervises some child actors, when the
> children are created I see this in the logs
>
> now supervising
> Actor[akka://mysys/user/MY_CLUSTERED_SINGLETON/singleton/ITS_CHILD]
>
> From my client I then do
>
> ActorRef singletonProxy =
> system.actorOf(ClusterSingletonProxy.props("/user/MY_CLUSTERED_SINGLETON/singleton/ITS_CHILD",
> proxySettings);
>
> Which throws an error that the actor is not found...
>
> it seems that the only way I can get messages to the singleton Actor is to
> specify the path /user/MY_CLUSTERED_SINGLETON for the
> ClusterSingletonProxy...
>
> its like it has some conventions around that path that prevent calls to
> supervised children of the clustered singleton actor?
>
> --
> >>>>>>>>>> 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.
>
--
Patrik Nordwall
Typesafe <http://typesafe.com/> - Reactive apps on the JVM
Twitter: @patriknw
--
>>>>>>>>>> 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.