开发者

Which reverse ajax library for Java?

What are worth to look at libraries for reverse ajax in Java web app?

Atmopshere is stil开发者_JAVA技巧l in 0.6 version, ICEpush still in alpha version, and websockets in Firefox 4.0 wont be available too.


Try out Comet with Tomcat. 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. Here is an example.


Try DWR


You can also use APE(Ajax Push Engine). Here is the link APE


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)


The blog post Introduction to Comet and Reverse AJAX by Krishna Srinivasan says:

AJAX push with ICEfaces

It is an open source AJAX based framework for developing Rich Internet Applications using Java. 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. ICEfaces uses “long polling” to communicate from server to client. 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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜