Hi giampaolo,

Sorry for the delay. This question must have fallen between the cracks.

I hope you have found the problem. This should absolutely work. Let me know
otherwise and I will investigate.

Regards,
Patrik

On Mon, May 11, 2015 at 3:21 PM, Giampaolo <[email protected]>
wrote:

> Hi to all,
>
> I'm quite new to Akka and this is my first post on the mailing list. I
> have an Actor System where I have a sharding region. Till now, I sent
> messages to actors behind region in a way like this:
>
> region ! MyActor.Message(param1, param2, to)
>
> Region is an ActorRef I get with val region =  
> ClusterSharding(AkkaInitializer.system.get).shardRegion(MyActor.shardName)
>
> MyActor is a companion object for MyActor actor which is under sharding. The 
> to parameter allows to correctly reach the right actor.
>
> This works like a charm (and I really thank Akka developer for providing a so 
> powerful tool to solve complex problems).
>
>
>
> Now I want to ensure that my Message is delivered at least once, so I
> changed the code like this (adding also the AtLeastOnceDelivery trait):
>
>
> deliver(region.path, deliveryId => MyActor.Message(param1, param2, to, 
> deliveryId))
>
>
> This does not work as expected. Unfortunately I get a dead letter for every 
> time a delivery is tried. This surprises me since I thought that since region 
> variable normally works, also using its path should work. Probably I'm 
> missing some detail about sharding internals or I'm confusing ActorRef/Path 
> definitions. I thought that while having a path does not implies to have an 
> incarnated actor, the opposite was true.
>
>
> Could someone explain me where I am wrong? Thank you in advance for your time.
>
>
> giampaolo
>
>
>
>  --
> >>>>>>>>>> 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.
>



-- 

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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to