没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
研究框架时如何设置service费了番周折,一开始不知道如何设置,后来根据打出的日志才看出来应该如何设置,这里实例标出:
<?xml version="1.0" encoding="utf-8"?>
<cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
xmlns:cairngorm="com.adobe.cairngorm.business.*"
xmlns:renaun="com.renaun.rpc.*">
<mx:Script>
<![CDATA[
import com.renaun.rpc.RemotingConnection;
]]>
</mx:Script>
<!--这里仍然使用了AMF0协议-->
<renaun:RemoteObjectAMF0 id="commonSqlService" source="commonSqlService"
gateway_conn="{new RemotingConnection('/flowmonitorFX/gateway')}">
</renaun:RemoteObjectAMF0>
</cairngorm:ServiceLocator>
source属性设置的commonSqlService就是spring中的java对象设置(flex-config.xml)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-lazy-init="true">
<!-- Placeholder configuration -->
<bean id="commonSqlService"
class="bss.sa.flowmonitor.webfx.CommonSqlService">
</bean>
</beans>
<?xml version="1.0" encoding="utf-8"?>
<cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
xmlns:cairngorm="com.adobe.cairngorm.business.*"
xmlns:renaun="com.renaun.rpc.*">
<mx:Script>
<![CDATA[
import com.renaun.rpc.RemotingConnection;
]]>
</mx:Script>
<!--这里仍然使用了AMF0协议-->
<renaun:RemoteObjectAMF0 id="commonSqlService" source="commonSqlService"
gateway_conn="{new RemotingConnection('/flowmonitorFX/gateway')}">
</renaun:RemoteObjectAMF0>
</cairngorm:ServiceLocator>
source属性设置的commonSqlService就是spring中的java对象设置(flex-config.xml)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-lazy-init="true">
<!-- Placeholder configuration -->
<bean id="commonSqlService"
class="bss.sa.flowmonitor.webfx.CommonSqlService">
</bean>
</beans>
资源评论
sqy137
- 粉丝: 0
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功