BlazeDS helloworld &Spring
来源:互联网 发布:凡人修仙传优化 编辑:程序博客网 时间:2024/06/06 02:02
1. MyEclipse建立JAVA Web Project,javaHelloWorld.
2.建立HelloWorld类,方法sayHello(String str).
3.将BlazeDS webapps里的blazeds里的WIN-INF复制,覆盖javaHelloWorld里的WebRoot>WIN-INF.
4.在FB中新建一FbHelloWorld,服务器类型J2EE,BlazeDS.
5.(要把WebRoot发布到BlazeDSwebapps下)
Root folder=javaHelloWorld的WebRoot.Root URL=http://localhost:8400/javaHelloWorld/;
Context root = /javaHelloWorld;
6.调整输出文件夹到BlazeDS上.
7.在FbHelloWorld.mxml里,通过<s:RemoteObject>来调用BlazeDS里的javaHelloWOrld服务.形式如:
<s:RemoteObject destination="HelloWorld" id="helloWorldService" >
<s:method name="hello" result="sayHello(event)"/>
</s:RemoteObject>
8.修改BlazeDS上javaHelloWorld/WEB-INF/flex/remoting-config.xml的配置文件.添加:
<destination id="helloWorldService" >
<properties>
<source>HelloWorld</source>
</properties>
</destination>
BlazeDS4集成了spring,这使得将spring里的bean提供给FB更简便了。比如上面这个helloWorld,改成spring的版本只需要修改配置文件即可。
1.复制blazeds-spring\WEB-INF,覆盖上文中的javaHelloWorld中的WEB-INF。
2.修改WEB-INF\spring\app-config.xml,增加:
<bean id="helloWorldService" class="HelloWorld" />
3.修改WEB-INF\flex-servlet.xml增加:
<flex:remoting-destination ref="helloWorldService" />
这样即可以把spring中的bean通过BlazeDS提供给FB使用了。
- BlazeDS helloworld &Spring
- Spring BlazeDS
- BlazeDS 整合 Flex HelloWorld 示例
- Flex3与BlazeDS HelloWorld 详解
- BlazeDS 整合 Flex HelloWorld 示例
- Spring BlazeDs 集成问题
- 配置Flex+BlazeDS+Spring
- Spring BlazeDS 的整合
- Spring Flex BlazeDS
- Spring blazeDs整合
- spring blazeds 安全配置
- Spring Blazeds integration
- BlazeDs + Spring 整合
- Flex + Blazeds "HelloWorld" in Flash builder 4.5
- BlazeDS 与Spring集成指(Spring BlazeDS Integration1.0)
- 案例学习BlazeDS+Spring之二Spring BlazeDS Integration 101
- 案例学习BlazeDS+Spring之二Spring BlazeDS Integration 101
- Spring helloworld
- 网站接口汇总
- String 和StringBuffer的区别
- Android 中的 ManagedQuery()
- ruby读取、写入文件
- Java常用加密方法
- BlazeDS helloworld &Spring
- 第13课SVN命令总结
- ruby字符串处理函数
- linux内核增加系统调用
- 自定义PreferenceActivity——修改Preference样式、加顶部布局
- 案例学习BlazeDS+Spring之一
- 使notepad++ 的smali语法着色
- ruby时间与日期
- jsp访问web-inf下的spring配置文件