简体   繁体   中英

Can JGroups be utilized to form the Java equivalent of COMET/Long-Polling?

In webdev-land, COMET/Lojg-Polling allows the server to maintain an open connection with each client and push data to each client as it becomes available. JGroups seems like it can be made to do the same thing between a client Swing application and its application server.

Is this a fair comparison or way off base?

The main motive of JGroups API is for clustering, what you are trying to achieve is a sustained socket connection.

You can create a client server like architecture using JGroups based on their node ranks. But for this you need to be a but more clear with the requirements.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM