Вопрос

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