[akka-user] Re: how to integration akka with spring

2016-06-17 Thread Michael Kohout
I generally wire in the actor system as a spring managed bean, and either create the actors via a post construct, or the actors themselves are @Beans as well. We generally pass Services or whatever data it needs via the actor constructor and akka's Prop object at startup. This has been very su

[akka-user] Re: how to integration akka with spring

2016-06-17 Thread Guido Medina
It depends, if your application life-cycle is handled by Spring then I usually recommend to have the ActorSystem as a singleton bean with destroy method set to "terminate" It also depends on what type of application you are building, do you really need Spring? if you really do then that's one wa