flex blazed 配置多个remoting-config
来源:互联网 发布:淘宝分销下单什么意思 编辑:程序博客网 时间:2024/06/05 11:22
flex blazed 配置多个remoting-config
我把配置贴出来,大家如果有类似需求可以参考下:
remoting-config-1.xml配置
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service-1"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object"
class="flex.messaging.services.remoting.adapters.JavaAdapter"
default="true" />
</adapters>
<default-channels>
<channel ref="my-amf" />
</default-channels>
<destination id="userService">
<properties>
<source>com.qihu.service.UserService</source>
</properties>
</destination>
</service>
remoting-config-2.xml配置
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service-2"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object"
class="flex.messaging.services.remoting.adapters.JavaAdapter"
default="true" />
</adapters>
<default-channels>
<channel ref="my-amf" />
</default-channels>
<destination id="customService">
<properties>
<source>com.qihu.service.CustomService</source>
</properties>
</destination>
</service>
services-config.xml配置:
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service-include file-path="remoting-config-1.xml" />
<service-include file-path="remoting-config-2.xml" />
<service-include file-path="proxy-config.xml" />
<service-include file-path="messaging-config.xml" />
</services>
应用程序:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:RemoteObject id="user" destination="userService"/>
<mx:RemoteObject id="custom" destination="customService"/>
<mx:Label x="280" y="325" width="160" text="{user.testByUser.lastResult}"/>
<mx:TextInput id="userInput" x="280" y="295" change="user.testByUser(userInput.text)"/>
<mx:Label x="480" y="325" width="160" text="{custom.testByCustom.lastResult}"/>
<mx:TextInput id="customInput" x="480" y="295" change="custom.testByCustom(customInput.text)"/>
</mx:Application>
我把配置贴出来,大家如果有类似需求可以参考下:
remoting-config-1.xml配置
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service-1"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object"
class="flex.messaging.services.remoting.adapters.JavaAdapter"
default="true" />
</adapters>
<default-channels>
<channel ref="my-amf" />
</default-channels>
<destination id="userService">
<properties>
<source>com.qihu.service.UserService</source>
</properties>
</destination>
</service>
remoting-config-2.xml配置
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service-2"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object"
class="flex.messaging.services.remoting.adapters.JavaAdapter"
default="true" />
</adapters>
<default-channels>
<channel ref="my-amf" />
</default-channels>
<destination id="customService">
<properties>
<source>com.qihu.service.CustomService</source>
</properties>
</destination>
</service>
services-config.xml配置:
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service-include file-path="remoting-config-1.xml" />
<service-include file-path="remoting-config-2.xml" />
<service-include file-path="proxy-config.xml" />
<service-include file-path="messaging-config.xml" />
</services>
应用程序:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:RemoteObject id="user" destination="userService"/>
<mx:RemoteObject id="custom" destination="customService"/>
<mx:Label x="280" y="325" width="160" text="{user.testByUser.lastResult}"/>
<mx:TextInput id="userInput" x="280" y="295" change="user.testByUser(userInput.text)"/>
<mx:Label x="480" y="325" width="160" text="{custom.testByCustom.lastResult}"/>
<mx:TextInput id="customInput" x="480" y="295" change="custom.testByCustom(customInput.text)"/>
</mx:Application>
- flex blazed 配置多个remoting-config
- Flex配置文件remoting-config.xml
- Flex + DotNet的Remoting通讯 之 安装配置FluorineFx第一个HelloWrold
- Flex remoting
- 配置多个struts-config.xml
- Remoting 客户。config
- Remoting 服务器.config
- 配置Struts应用使用多个struts-config.xml文件
- 通过web.config可配置多个数据库连接
- 在 Web.config 文件中配置多个站点地图
- .net App.config 自定义配置 获取多个节点
- struts1.2如何配置多个struts-config.xml
- 分模块编程 配置多个struts-config
- SSH配置以及多个SSH & config文件
- spring cloud config svn配置多个配置文件
- 多个config应用
- 多个config应用
- 配置子目录Web.config使其消除继承,用虚拟目录创建多个网站的方法
- 【原创】shadow ssdt学习笔记(二)
- C++ 程序员自信心曲线图
- android调用webservice传递自定义类以及类的集合
- linux内核V2.6.11学习笔记(3)--switch_to宏
- Hibernate学习笔记(六)----关联关系中的CRUD
- flex blazed 配置多个remoting-config
- sql 如何避免出现笛卡尔积运算
- C++ 对象的内存布局(下)
- Windows CE 进程、线程和内存管理(一)
- 神秘的天外来音如何形成
- jQuery 效果 - 来自本页
- HttpClient 超时 用法 .
- 如何控制word里的多级列表
- 用showModalDialog打开的窗口关闭时怎么刷新父页面