Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top