title: Atmosphere Jersey - Server messages
body: <p>Is it possible to let the server send messages to all connected clients without waiting for any action from them? Let me explain it :-) I've been reading the <a href="https://github.com/Atmosphere/atmosphere/wiki/Getting-Started-with-The-Atmosphere-Framework-and-WebSocket">docs/examples</a> and I have found nothing that satifies my needs: the flow is always the same; a client connects (e.g: a GET call to a Rest API), the connection is suspendend and until a new API call is received (e.g.: a POST call) the server simply waits (or at least this is what I have understood). My use case is pretty different: I want the server to send some "notifications" once new data become available. This would be my use case (pretty simplifed):</p>
  
  <ol>
  <li>Client A connects to server</li>
  <li>Connection is suspended since no new data is available at the moment</li>
  <li>The server gets notified new data is available from an external
  source and broadcasts it to client A</li>
  <li>Go to step 2</li>
  </ol>
  
  <p>What I have achieved so far is getting the connection successfully established. The next step is to solve this server issue. I must say this technology is completely new to me so it is possible I misunderstood how something works. If that's the case, let me know!</p>
  
  <p>This is my stack:</p>
  
  <ul>
  <li>Spring 3.2.0 RELEASE</li>
  <li>Jersey 1.8</li>
  <li>Atmosphere Jersey 1.0.13</li>
  <li>Tomcat 7.0.40</li>
  </ul>
  
  <p>Thank you all in advance!</p>
  
  <p>UPDATE: After following <a href="https://github.com/Atmosphere/atmosphere/wiki/Server-Side-Broadcasts--OR-Communication-from-Server-Sides--OR--Non-Http-initiated-Broadcast">this</a> I get this warning, which I have no idea how to get rid of:</p>
  
  <pre><code>2013-06-04 09:40:36,284 WARN [org.atmosphere.cpr.AtmosphereFramework] - Failed using comet support: org.atmosphere.container.Tomcat7AsyncSupportWithWebSocket, error: Tomcat failed to detect this is a Comet application because context.xml is missing or the Http11NioProtocol Connector is not enabled.
  If that's not the case, you can also remove META-INF/context.xml and WEB-INF/lib/atmosphere-compat-tomcat.jar Is the Nio or Apr Connector enabled?
  2013-06-04 09:40:36,285 WARN [org.atmosphere.cpr.AtmosphereFramework] - Using org.atmosphere.container.Tomcat7BIOSupportWithWebSocket
  </code></pre>
  
  <p>I followed the app structure commented <a href="https://github.com/Atmosphere/atmosphere/wiki/Structure-of-an-Atmosphere%27s-Application">here</a>, so this should not be a problem. I have noticed that by changing the transport to "websocket" instead of "long-polling" shows no errors. The server finally sends data tough :)</p>