rabbitmq存储消息的数据结构(RabbitMQ » Blog Archive » SockJS – WebSocket emulation Messaging that just works)
3 Responses to “SockJS – WebSocket emulation ”
falcon Says:September 19th, 2011 at 5:05 pm
How about a server in Java? Seriously, there are different efforts to do real-time communication with the browser in java (various socket.io implementations, atmosphere), but they are all terrible to use.
Every time I start to read documentation of atmosphere, I find trying to figure out continuations, paus/resume/broadcast, annotations. Other implementations show a few lines of code as "simple" example of how to write java to send simple messages. The fact that all (?) of them need to be deployed into web/sevlet containers doesnt get described.
It took me less time to figure out what node.js was, what socket.io was, what npm was, how to install them, get them running and successfully communicate with browsers, than it did for me to get java solutions working. (actually I have NEVER gotten java solutions to work satisfactorily). This, despite the fact that Im not a web developer and have almost no javascript experience...whereas I have been doing java for 10 years.
marek Says:September 19th, 2011 at 5:12 pm
How about a server in Java?
Why not Subscribe to SockJS mailing list and ask there http://groups.google.com/group/sockjs . Im heard few people interested in doing SockJS-java!
Tim Fox Says:September 21st, 2011 at 7:59 am
Have you looked at https://github.com/purplefox/node.x
Its a fully async general purpose application container for JVM languages. It supports TCP, HTTP, Websockets, etc, and many more modules on the way.
If you like, you can think of it as "node.js for JVM languages".
Its also a Rabbit/VMware project. (I work for VMware too ) )
How about a server in Java?
创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!