Push Notification to Client

后端 未结 3 1291
灰色年华
灰色年华 2021-01-15 17:45

I built my project using Struts, Spring, and Hibernate. I am using Tomcat for the server. Now I want to implement push notifications in my web application, to perform tasks

相关标签:
3条回答
  • 2021-01-15 18:35

    Well the easiest way is use ajax calls with long polling(jQuery comes to mind). Comet is fine too.

    0 讨论(0)
  • 2021-01-15 18:36

    Have you tried the framework Atmosphere? It supports websocket and also fallback to mentioned longpolling.

    It can be used with jquery on the client side. Tutorial is here.

    0 讨论(0)
  • 2021-01-15 18:45

    Use Spring STOMP WebSockets.. its very easy and simple https://spring.io/guides/gs/messaging-stomp-websocket/

    0 讨论(0)
提交回复
热议问题