Posted on 2010-01-24 20:07
S.l.e!ep.¢% 阅读(632)
评论(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