سؤال

My Javaserver application(Servlet) receive a service request (HTTP) from client and then it should respond to the client in fixed interval time.

How can I send HTTP response every minute to client without having a HTTP request?

هل كانت مفيدة؟

المحلول

have a look at https://github.com/Atmosphere/atmosphere or Comet/WebSockets

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top