在spring和flex整合的工程中,很重要的文件services-config.xml中:
<endpoint
url="http://{server.name}:{server.port}/{context.root}/spring/messagebroker/amfpolling"
class="flex.messaging.endpoints.AMFEndpoint" />
中必须添加红色的spring,让flex的destination去和spring配置文件中查找,
<flex:remoting-destination ref="myService" />
<bean id="myService" class="MyServiceImpl" />
如果没有添加/spring/,程序会报错。。。。。