开发者

Long poll for JSF - what are the choices?

开发者 https://www.devze.com 2023-01-20 04:52 出处:网络
I need to implement long-poll for a notification system, I current using Primefaces ajax framework but currently does not support long poll. I just wondering what is available for JSF developer if the

I need to implement long-poll for a notification system, I current using Primefaces ajax framework but currently does not support long poll. I just wondering what is available for JSF developer if they want to implement long poll? Another question: between long poll and web push, for notification system, which one is prefer?

Note: I am using JSF 2.0, Java EE开发者_高级运维 6 and Glassfish 3.0.1


Icefaces supports long polling. Your other choices would be to use open source libraries with JSF. Just search for long polling or reverse ajax and you would find some prominent libraries such as Comet and DWR. But as reverse ajax or long polling is pre-configured in Icefaces - i think it is your best choice. I also have a feeling that by now Primefaces already has reverse ajax feature.

0

精彩评论

暂无评论...
验证码 换一张
取 消