Cinnamon基于AS3项目的例子
作者:弃天笑 日期:2009-03-22
有些朋友会说Cinnamon的测试例子有点难搭起,过程遇到的问题比较多。所以在我就放上一个基于AS3项目工程的例子,过一阵再把后台基于Spring的例子放出来。
大家做例子前,建议先仔细看看官方的说明,非常详细。我也是看它做的,这里我就简单说了
现在先简单说说,基本上,客户端的remoting服务类,是采用ant根据服务端的接口生成的。下面是配置文件

现在我的服务器有一个接口CounterService和他的实现类CounterServiceImpl
大家做例子前,建议先仔细看看官方的说明,非常详细。我也是看它做的,这里我就简单说了
现在先简单说说,基本上,客户端的remoting服务类,是采用ant根据服务端的接口生成的。下面是配置文件

现在我的服务器有一个接口CounterService和他的实现类CounterServiceImpl
在Cinnamon传输自定义的对象(VO/Bean)
作者:弃天笑 日期:2008-12-28
在使用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" />
我当初用的时候,也是一时大意,以为它是像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" />
[AS3]开源的Remoting框架:Cinnamon
作者:弃天笑 日期:2008-12-28
目前在做一个后台管理系统的项目中,因为不想使用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.
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.
- 1






