Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I'm experiencing a strange behavior with Atmosphere + Long Polling.

I'd like to have a broadcaster per user, so I have registered a broadcaster on resource suspension with id : /user/. I use Atmosphere on a clustered environnement, so I have configured to use an external broadcaster that use Hazelcast. (No chance for Redis, corporate rigidity).

Everything seems to work, BUT all broadcasted messages never reach the browser.

Future<Object> f = BroadcasterFactory.getDefault().lookup("/user/foo").broadcast("my lovely message");
f.get()

I can see my pending request on each browser (Chrome/ Firefox), but no resume, and no response until the socket timeout to renew the connection.

My environment :

  • Servlet 3.0
  • JBoss AS7 7.20
  • Spring 3.2 + MeteorServlet
  • Atmosphere 1.1.0RC1 (same with the most stable version) + jQuery Atmosphere
share|improve this question
    
Off-topic comment, but how did you make that avatar? –  Joe Nov 22 '13 at 21:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.