Question

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?

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top