首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

flex中endpoint的功用是什么

2012-11-03 
flex中endpoint的作用是什么?endpointchannel-definition idmy-amf /???? ??????? /channel-definit

flex中endpoint的作用是什么?

endpoint

<channel-definition id="my-amf" />
????
??????? </channel-definition>

??????? <channel-definition id="my-secure-amf" -context-root "/flexWeb"???????

?? services-config.xml 需要放在当前目录下,或者指定BlazeDS所在的配置文件路径。
2. 在 <mx:RemoteObject/> 对象中指定Endpoint参数:
???? 例如:?
??? Xml代码
<mx:RemoteObject id="roOrder" destination="Hello" showBusyCursor="true" endpoint="http://server:8080/flexWeb/messagebroker/amf">
<mx:RemoteObject id="roOrder" destination="Hello" showBusyCursor="true" endpoint="http://server:8080/flexWeb/messagebroker/amf">
?说明:1) 全路径:????????? endpoint="http://server:8080/flexWeb/messagebroker/amf" >
?????? 2) 基于contextRoot: endpoint="/flexWeb/messagebroker/amf" >
?????? 3) 基于当前路径:?? endpoint="messagebroker/amf" >
??

1 楼 leisure 2009-06-25   good
为什么 使用<mx:RemoteObject/>时候还要制定endPoint,配置文件中不是已经设置了吗? 2 楼 PointOnLine 2009-11-24   leisure 写道good
为什么 使用<mx:RemoteObject/>时候还要制定endPoint,配置文件中不是已经设置了吗?
同样疑问…… 3 楼 p_x1984 2009-11-24   好久没搞这个东西了,你可有理解为是url的站点即可,这样配置麻烦,也可有用request来和java通信。 4 楼 fish4j 2009-11-30   -services "services-config.xml"
这个参数是写相对路径还是绝对路径呢? 5 楼 azhqiang 2010-01-25   请问下使用<mx:RemoteObject/>时候还要制定endPoint 这个 endpoint到底是啥意思呢? 6 楼 fastzch 2010-04-01   azhqiang 写道请问下使用<mx:RemoteObject/>时候还要制定endPoint 这个 endpoint到底是啥意思呢?
一般编译时加了services参数就不用指定了,没加就指定。 7 楼 sprite 2010-04-01   endpoint 是指接受当前请求的地址。
一般编译时加了services参数就不用指定了,因为编译器已经为你编译进去了。
如果你想通过配置文件动态指定(如跨域请求的话),就需要指定。

热点排行