• 1
预览模式: 普通 | 列表

在Cinnamon传输自定义的对象(VO/Bean)

在使用Cinnamon中传输自定义对象的话,是需要另外配置cinnamon-config.xml文件的。(注意,本文所说的配置不是基于spring的,cinnamon-config.xml的配置文件有两种配置方式,一种是基于spring,另外一种就是基本它本身的解析程序了)
我当初用的时候,也是一时大意,以为它是像Adobe的Remoting一样,直接在VO的名字是上面用[RemoteClass(alias="soda.SodaVo)]一样绑定,或者采用registerClassAlias("soda.SodaVo",SodaVo);
这样的注册方式,只要服务器有对应的soda.SodaVo就可以解析出来。
事实上,Cinnamon传输自定义的VO,需要额外的配置,查看了他的文档,才知道class Mapping。下面是他的配置信息:
 <bean-mapping alias="model::SodaVo" java-class="soda.SodaVo" />

查看更多...

分类:Flash/Flex框架 | 固定链接 | 评论: 1 | 引用: 3 | 查看次数: 2329

[AS3]开源的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.

查看更多...

分类:Flash/Flex框架 | 固定链接 | 评论: 0 | 引用: 3 | 查看次数: 2733
  • 1
Google