Hi Patrik,

I had to write the proxy based on ConsumerProxy in the doc to use it. I was
wondering if there was any other ways of doing it?

Akhil

----
Regards,
Akhil Kodali


On Wed, Jan 22, 2014 at 3:25 PM, Patrik Nordwall
<[email protected]>wrote:

> Hi Akhil,
>
> Read the following sections of the documentation carefully, and ask again
> if that is unclear...
> http://doc.akka.io/docs/akka/2.2.3/contrib/cluster-singleton.html
>
> "You access the singleton actor with..."
>
> "With the names given above the path of singleton actor can be
> constructed"
>
>
> /Patrik
>
> PS. Personally, I find it most convenient to register the singleton actor
> in the replicated 
> registry<http://doc.akka.io/docs/akka/2.2.3/contrib/distributed-pub-sub.html>,
> but I understand if you might find that one too many component to start
> with.
>
> PS2. Perhaps we should provide this singleton proxy out of the box, and
> the usage could be exactly as Viktor proposed.
>
>
> On Wed, Jan 22, 2014 at 8:21 PM, akhil <[email protected]> wrote:
>
>> Yes...doesn't work
>>
>> On Wednesday, January 22, 2014 2:19:13 PM UTC-5, √ wrote:
>>
>>> Hi, (Just off the top of my head so I may be wrong here)
>>>
>>> have you tried to store the resulting ActorRef in a val and sending it
>>> the message?
>>>
>>> val singleton = system.actorOf(ClusterSingletonManager.props(…), )
>>>
>>> singleton ! "my message"
>>>
>>>
>>>
>>>
>>> On Wed, Jan 22, 2014 at 8:08 PM, akhil <[email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> I went through other posts and docs on ClusterSingletonManager but a
>>>> little confused how to use it?
>>>>
>>>> I have created an actor using:
>>>>
>>>> system.actorOf(ClusterSingletonManager.props(
>>>>       singletonProps = handOverData => Props(classOf[TestSI]),
>>>>       singletonName = "master",
>>>>       terminationMessage = PoisonPill,
>>>>       role = Some("worker")),
>>>>       name = "singleton")
>>>>
>>>>
>>>> How do I send message to this actor?
>>>>
>>>> Akhil
>>>>
>>>> --
>>>> >>>>>>>>>> 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 [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/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> --
>>> Cheers,
>>> √
>>>
>>> * ——————— **Viktor Klang*
>>> *Chief Architect - **Typesafe <http://www.typesafe.com/>*
>>>
>>>  Twitter: @viktorklang
>>>
>>  --
>> >>>>>>>>>> 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 [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/groups/opt_out.
>>
>
>
>
> --
>
> Patrik Nordwall
> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
> Twitter: @patriknw
>
>  --
> >>>>>>>>>> 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 a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/akka-user/us9q2HPbDbk/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 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 [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/groups/opt_out.

Reply via email to