Posted on 2010-01-24 20:07
S.l.e!ep.¢% 閱讀(648)
評論(0) 編輯 收藏 引用 所屬分類:
A·M·F·3
開源的Remoting框架:Cinnamon 收藏
目前在做一個后臺管理系統的項目中,因為不想使用Adobe自帶的remoting組件,所以采用了Cinnamon這個開源的項目。
Cinnamon是http://www.spicefactory.org/ 中的一個基于flash remoting技術的開源框架(具體想要了解的人可以到網站去了解http://www.spicefactory.org/cinnamon/ ,一進去就有它的詳細介紹:Full support for AMF3):下面是官方介紹,我就不翻譯啦
Cinnamon is a remoting framework based on the AMF3 protocol connecting clients written in AS3 with Java EE server applications. It can be deployed in every servlet container or Java EE application server. It contains the following features:
??? *? Full support for AMF3.
??? * Comes with its own Client API and does not build on top of the RemoteObject API of Flex, so it can be used with or without Flex.
??? * Client Proxies of remote services implement business interfaces so you don't lose type safetey for remote method invocations like with RemoteObject.
??? * Flexible server configuration: XML, annotations, custom Spring configuration namespace, programmatic configuration.
??? * Many options how to map ActionScript classes to Java classes.
??? * Extensible automatic type conversion for method parameters and bean properties.
??? * Currently supports Spring Beans and plain Java classes as services.
??? * Automatic source generation of AS3 service interfaces and proxies with Cinnamons Ant task.
??? * Integration with JPA/Hibernate when used with Pimento Data Services.
根據個人的使用感覺來說,還是非常不錯的,使用也很方便。它在服務端聲明了遠程服務接口以及實現類,然后通過他自帶的工具包配合Ant工具,就可以生成對應的客戶端接口和實現類。然后在使用過程中,只需要使用這個接口就可以了,非常方便。這種把整個服務端的接口搬下來的思想還是非常不錯的。
希望有興趣的人可以去了解一下,里面有詳細API以及說明文檔。建議要使用的人應該去了解,他本身帶有簡單的使用教程。
本文來自CSDN博客,轉載請標明出處:http://blog.csdn.net/sujun10/archive/2009/07/22/4371804.aspx