Hi Amit,

using Put will register the path of the given ActorRef in the registry.
Since you are creating a Router, that path will be
"/user/subscriberActor/c1" (or similar). In order to make it work you can
either

   - not make it a Router (can your PubSub deliver more messages per second
   than your subscriber can process?)
   - or register getContext().parent() instead.

Regards,

Roland



On Tue, Feb 11, 2014 at 12:28 PM, Amit Mula <amitm...@gmail.com> wrote:

> hi guys!
>
> I am again stuck with a cluster pub sub problem. Recently, I was using the
> *Send()* method of *DistributedPubSubMediator *but seems like the message
> are not being received by the subscriber.
>
> Instead of subscribe, I have used put in the subscriber actor
> initialization :
>
> mediator.tell(new DistributedPubSubMediator.Put(getSelf()), getSelf());
>
>
> I am creating crating the subscriber actor as a router:
>
> system.actorOf(Props.create(*SubscriberActor*.class).withRouter(new
>> FromConfig()), "*subscriberActor*");
>
>
> and I am sending messages to the subscriber actor through the
> DistributedPubSubMediator from the publisher actor :
>
> Future<Object> someFuture = ask(mediator, new
>> DistributedPubSubMediator.Send(*"/user/subscriberActor"*, someMessage
>> ,true), timeout);
>
>
> The above strategy works with *Publish() *but can't get it working with*
> Send()*. Am I missing something?
>
> Please suggest.
>
> Kind regards,
> Amit
>
>  --
> >>>>>>>>>> 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.
>



-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

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