'http://localhost:8080/WebRoot/messagebroker/amf'路径不对解决办法
按照http://www.davidtucker.net/2007/11/07/cairngorm-part-4/ 做示例,改成Java做后台,提示“'http://localhost:8080/WebRoot/messagebroker/amf'”路径不对错误,后经后半天调试终于通过了。
改动如下:
1、修改remoting-config.xml 而不是services-config.xml, 内容如下:
<?xml version="1.0" encoding="UTF-8"?> <service id="remoting-service" 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="FirstCairngormRO"> <properties> <source>com.Lee.vo.CairngormTest</source> <scope>application</scope> </properties> </destination> </service>
2、properties---flex server---Context root 改为项目名称:
注:开发环境 MyEclipse7 + flex3 plugins