flex的发布问题,先记录下,还不确定是否完全正确!

来源:互联网 发布:钉钉抢红包软件 编辑:程序博客网 时间:2024/05/02 00:47

工程早就弄好了,在本机通过remoteObject访问后台没有问题,但是部署到服务器上确总是查不到数据,

 

开始的 services-config.xml文件的配置如下:

<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
  <endpoint url="http://locahost/rcwss/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>

 

换到服务器上用IP地址代替localhost也不行,后来看到说用相对地址不可行,我就没往这方面考虑,快下班了

 

才决定换成相对地址,竟然没问题,大出意料,等待进一步验证...

 

<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
  <endpoint url="/rcwss/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>

原创粉丝点击