How to define AtmosphereFramework listener without web.xml?

Hi all,

During starting my Vaadin app on Jetty I get in logs following:

 Jun 15, 2015 3:34:07 PM org.atmosphere.cpr.AtmosphereFramework doInitParams
WARNING: SessionSupport error. Make sure you define org.atmosphere.cpr.SessionSupport as a listener in web.xml instead

I know that AtmosphereFramework is used to support Push calls from server, however I could not turned it on.

My question is:
How to define this listener if I don’t have web.xml?
I use annotation based configuration of Vaadin app.
Can someone help me?

If I remember correctly, you do that inside
@WebServlet
annotation like this:

@WebServlet(value = "/*", asyncSupported = true, initParams = @WebInitParam(name = "listener", value = "org.atmosphere.cpr.SessionSupport"))