Atmosphere 是一个基于 POJO 并采用控制反转技术,简化推送/ Comet 实现的框架。这个框架可以运行在任何基于 Java 的 Web Server 上,包括 Tomcat、 Jetty 、GlassFish、Weblogic、 Jersey 以及 Grizzly 等等。用户无需等待 Servlet 3.0 规范的实现,也无需关心这些容器在支持推送 /Comet 实现方面有怎样的不同。
6 月 12 日,Atmostphere 框架宣布释出 0.2 GA 版本,框架创建者 Jean-Francois 介绍这个新版本包含了许多 bug 修复,以及一些新鲜的特性:
- 正式支持 atmosphere-core 注解:@Resume,@Suspend,@ResumeOnBroadcastm,@Broadcast。现在可以编写 REST 风格 Web 应用,这里有 Jersey 的一篇文章。
- 新的示例:
- Twitter (atmosphere-core) --> Web
- Counter (atmosphere-core) --> REST
- Twitter (atmosphere-cpr) --> Web
- Chat (atmosphere-core) --> REST
- 正式支持 JBossWeb 和 Jetty 7
- 改善对 Servlet 3.0、Weblogic、Tomcat、Jetty 和 GlassFish 的支持
- 支持强制本地 Comet,-Dorg.atmosphere.useNative=true|false
- 新的 BroadcasterLookup 支持 EJB 和非 web 应用的广播(参见 http://is.gd/10oDk )
- 新的 AbstractReflectorAtmosphereHandler 加快启动速度(参见 http://is.gd/10oHc )
- 新的 ReflectorServletProcessor 为既有框架添加对 Atmosphere 的支持(参见 http://is.gd/10oKc )
- 新的 leader/follower 线程池实现用于广播消息
- 新的 AtmosphereAdapter 和 GrizzlyWebServer 嵌入式 API 共同使用(参见 http://is.gd/10oOT )
- 新的 MessageTransformer API 用于 XSS attack/Filtering/Throttling 广播(参见 http://is.gd/10oXV )
读者可以在这里下载最新版本的Atmosphere,感兴趣的还可以follow Atmosphere 的 Twitter 。
评论