-2

I'm creating an atmosphere servlet application, which uses the following servlet in web.xml https://atmosphere.java.net/nonav/apidocs/org/atmosphere/cpr/AtmosphereServlet.html.

When this service starts up I would like to start to an Akka actor system and have it available throughout the life of the application.

How is this done?

user2668128
  • 39,482
  • 8
  • 27
  • 34
  • What have you tried so far? This should be a pretty straight forward answer provided you did a little work yourself which I'm guessing you have not. Show some work/thought first before coming here for help. – cmbaxter Sep 16 '13 at 11:27

1 Answers1

1

I believe what you want to do is initialize an actor system within the servlet context. This question/answer should help. Don't forget to include the ContextListener in your web.xml.

Community
  • 1
  • 1
joescii
  • 6,495
  • 1
  • 27
  • 32