我把配置贴出来,大家如果有类似需求可以参考下:
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>
分享到:
相关推荐
Flex4 blazed MyEclipse8.5配置开发环境
NULL 博文链接:https://inotgaoshou.iteye.com/blog/1222795
Flex+Blazed+J2EE 框架塔建,基本链接方式模板,封装flex代码,显示mxml与as剥离。flex代码分为3层,组件、控制、显示。包含大量注释,案例,帮助你10分钟理解felx开发,熟悉Flex+Blazed+J2EE框架。并且提供J2ee封装...
折腾了一周的时间想做个flex+java的helloworld例子,可是怎么都运行不出来,今天终于运行出来了。 总结,共有一下几种方法: 1,flex项目和web项目在同一项目。 2,flex项目和web项目为两个项目,进行交互。 ...
ssh+flex整合的过程,通过J2EE Web工程添加Flex项目,进行BlazeDS开发 。
构建全栈式Flex、BlazeDS和Spring集成解决方案。 构建全栈式Flex、BlazeDS和Spring集成解决方案
Blazed
--flex与webservice交互这里调用一个天气预报的webservice--> wsdl="http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl" fault="ws_faultHandler(event)" result="ws_resultHandler(event)" ...
Flex4系列教程 本系列教程目标:使初学者了解富网络应用概念,理解并掌握以下四种架构方法。 1. Flex + BlazeDS + Spring() + iBATIS + Cairngorm 2. Flex + BlazeDS + Spring BlazeDS Integration + Spring(>= ...
整合blazed和spring需要的jar包
flex和java融合,实现通信.更加方便快捷
详细阐述flex和java交互环境搭建的过程
flex+cairngorm+java 实例
flex4.*的api英文的 flex4.*的api英文的flex4.*的api英文的
Blazed火焰
Convex blazed grating of high diffraction efficiency fabricated by swing ion-beam etching method
一个使用Node.js和React.js设计的电子商务服装店 该项目是使用Create React App创建的。 克隆回购 $ git clone git@github.com:blazed95/NodeJs-ReacJs-Ecommerce.git $ cd node-react-ecommerce 安装依赖项 $ npm ...
Polarization beam splitter using a binary blazed grating coupler