[akka-user] Re: Do I have to shutdown AKKA system after each execution

2016-06-15 Thread Guido Medina
Nope, if you are controlling your application via Spring, make akka system a singleton bean with destructor method = terminate. On Tuesday, June 14, 2016 at 5:29:29 PM UTC+1, Yan Pei wrote: > > Hello All, > >I've designed the application with AKKA + Spring Framework IOC + Spring > Scheduler.

[akka-user] Re: Do I have to shutdown AKKA system after each execution

2016-06-15 Thread Yan Pei
Thank you Guido. If I don't shutdown akka system, should I also not kill the actors under the akka system? On Wednesday, June 15, 2016 at 9:42:44 AM UTC-5, Guido Medina wrote: > > Nope, if you are controlling your application via Spring, make akka system > a singleton bean with destructor method

[akka-user] Re: Do I have to shutdown AKKA system after each execution

2016-06-15 Thread Guido Medina
Akka will do that in an orderly fashion On Wednesday, June 15, 2016 at 5:43:20 PM UTC+1, Yan Pei wrote: > > Thank you Guido. If I don't shutdown akka system, should I also not kill > the actors under the akka system? > > On Wednesday, June 15, 2016 at 9:42:44 AM UTC-5, Guido Medina wrote: >> >> N

[akka-user] Re: Do I have to shutdown AKKA system after each execution

2016-06-15 Thread Yan Pei
only if AKKA got shutdown the actors got killed right? But for each run, do I have to recreate actor then kill then at the end of run? On Wednesday, June 15, 2016 at 12:00:57 PM UTC-5, Guido Medina wrote: > > Akka will do that in an orderly fashion > > On Wednesday, June 15, 2016 at 5:43:20 PM U

[akka-user] Re: Do I have to shutdown AKKA system after each execution

2016-06-15 Thread Guido Medina
The way you are asking indicates you haven't read how Akka works, you must learn at least the basic life-cycles, you know the old saying? RTMF? On Wednesday, June 15, 2016 at 6:46:40 PM UTC+1, Yan Pei wrote: > > only if AKKA got shutdown the actors got killed right? But for each run, > do I have

Re: [akka-user] Re: Do I have to shutdown AKKA system after each execution

2016-06-16 Thread Patrik Nordwall
An ActorSystem is a rather heavyweight object. You typically start it when your application is launched and then keep it running until the application is stopped. Actors within the ActorSystem are rather lightweight objects and you can start many of them. An actor can be short lived, or stay aroun

Re: [akka-user] Re: Do I have to shutdown AKKA system after each execution

2016-06-16 Thread Yan Pei
We managed the lifecycle of actors inside the Application and only stop the ActorSystem until the batch processing application is stopped. Since we use a scheduler to run the batch processing application, like once per day, I guess it's ok to create ActorSystem for each run when the scheduler in