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 way, your actors should have 
access to the Spring context
so that you can use Spring beans programmatically, maybe there is an 
extension that makes things easier.

Try google-ing "akka spring integration" to see if someone has done 
something for it, if not, my suggestion might not be that bad.

HTH,

Guido.

On Tuesday, June 14, 2016 at 7:06:12 AM UTC+1, 朱怀琦 wrote:
>
> Hi  all,
>     I have a question about integration akka  with spring,how to 
> integration akka with spring?
>

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

Reply via email to