简体   繁体   English

哪个Java反向ajax库?

[英]Which reverse ajax library for Java?

What are worth to look at libraries for reverse ajax in Java web app? 有什么值得一看的Java Web应用程序中的反向Ajax库?

Atmopshere is still in 0.6 version, ICEpush still in alpha version, and websockets in Firefox 4.0 wont be available too. Atmopshere仍为0.6版本, ICEpush仍为Alpha版本,Firefox 4.0中的websocket也将不可用。

Try out Comet with Tomcat . 试用Tomcat的Comet Also, Tomcat 7 might be useful to you since it implements the Servlet 3.0 spec, which I believe has some niceties for Reverse Ajax thanks to the Async support. 另外,Tomcat 7对您来说可能会很有用,因为它实现了Servlet 3.0规范,我相信由于Async支持,它对Reverse Ajax有所帮助。 Here is an example. 是一个例子。

试试DWR

You can also use APE(Ajax Push Engine). 您也可以使用APE(Ajax推送引擎)。 Here is the link APE 这是链接APE

The blog post Introduction to Comet and Reverse AJAX by Krishna Srinivasan says: 克里希纳·斯里尼瓦桑(Krishna Srinivasan)的博客文章《彗星和逆向AJAX简介》说:

AJAX push with ICEfaces ICEfaces的AJAX推送

It is an open source AJAX based framework for developing Rich Internet Applications using Java. 它是一个基于AJAX的开源框架,用于使用Java开发Rich Internet Application。 AJAX push is an exciting feature of ICEfaces which enable us to develop Comet web application with simple Java API without worrying about the low-level details of the push-mechanism. AJAX推送是ICEfaces的一项令人兴奋的功能,它使我们能够使用简单的Java API开发Comet Web应用程序,而不必担心推送机制的底层细节。 ICEfaces uses “long polling” to communicate from server to client. ICEfaces使用“长时间轮询”从服务器到客户端进行通信。 This involves holding an open connection from client to server with a blocking request, and then sends the response only when some state change in the application. 这涉及通过阻塞请求保持从客户端到服务器的开放连接,然后仅在应用程序中的某些状态更改时发送响应。

The good thing about atmosphere is that it delegates to the best underlying mechanism available, and these mechanisms are mostly stable (each container provides its own ways). 关于大气的好处是,它委托了可用的最佳底层机制,并且这些机制大部分是稳定的(每个容器提供自己的方式)。 I think it's more or less a standard solution, so don't be bothered by the version. 我认为它或多或少是一个标准解决方案,因此不要为版本所困扰。 (Note: I haven't used it) (注意:我没有使用过)

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

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