简体   繁体   English

将大气与弹簧结合在一起

[英]Integrate example of Atmosphere with spring

I'm starting with Atmosphere, so I have some doubts and difficulties. 我从大气开始,所以我有一些疑问和困难。

How could I integrate this example http://blog.javaforge.net/post/32659151672/atmosphere-per-session-broadcaster with Spring? 如何将该示例http://blog.javaforge.net/post/32659151672/atmosphere-per-session-broadcaster与Spring集成在一起?

You try this example: 您尝试以下示例:

https://github.com/keaplogik/springMVC-atmosphere-comet-websockets https://github.com/keaplogik/springMVC-atmosphere-comet-websockets

But this is not good idea, I think. 我认为这不是一个好主意。

Atmosphere with spring is too heavy, if you are developing a little app, native websocket or asyncServlet is better then Atmosphere. Spring的氛围太重了,如果您要开发一个小应用程序,那么原生Websocket或asyncServlet比Atmosphere更好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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