Thanks Patrik. 

On Monday, September 19, 2016 at 2:04:01 AM UTC-5, Patrik Nordwall wrote:
>
> You need to use the `Passivate` message.
>
> http://doc.akka.io/docs/akka/2.4/java/cluster-sharding.html#Remembering_Entities
>
> Also, make sure that you don't call context.stop from any other thread 
> than the actor's message receive.
>
> /Patrik
>
> On Sun, Sep 18, 2016 at 11:52 PM, Ajmal Babu <ajma...@gmail.com 
> <javascript:>> wrote:
>
>> We are using AKKA 2.4.10 persistent actor, cluster sharding with 
>> Cassandra storage and have enabled remember-entity = true. We need to stop 
>> certain persistent actor after a specific time-frame. (few days). The issue 
>> is that the actor once stopped gets automatically restarted after 10 
>> seconds. But if remember-entity is set to false it does not restart. The 
>> actor stop is tried out (a) from another persistent actor or (b) from the 
>> same persistent actor with a scheduled future event to stop itself. Both 
>> cases automatic restart happens.
>>
>> We are using Spring with AKKA. Interestingly if the persistence actor 
>> stop is performed from direct spring code for e.g. on a rest end point (not 
>> from an actor code) persistent actor does not get automatically restarted 
>> irrespective of the above flag remember-entity = true or false. Can you 
>> please provide solution for this,
>>
>> -- 
>> >>>>>>>>>> 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 akka-user+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
> Patrik Nordwall
> Akka Tech Lead
> Lightbend <http://www.lightbend.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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to