0
어떤 이유에서든 4 개의 RemoteObject가 동일한 ChannelId를 가리키는 swf가 있지만 두 개의 다른 지점에 해당 채널을 나열하고 있습니다. 5 개의 RemoteObject 중 4 개에서 모든 것이 예상대로 작동하지만 네 번째 (WidgetService)에서는 dev의 버전이 dev.context.root에서 loc.context.root로 전환됩니다. 문제를 더 혼란스럽게 만들기 위해서만 dev 서버 (QA 및 생산은 로컬 빌드와 마찬가지로)에서이 작업을 수행합니다.RemoteObject가 일치하지 않는 채널 위치
설정 파일에서 관련 정보는 다음과 같습니다
#This is from build.properties, which is used by Ant #to build the swf on the server flex.sdk.dir = /path/to/sdk/flex_sdk_3.2.0.3958 flex.sdk.bin.dir = ${flex.sdk.dir}/bin flex.sdk.framework.dir = ${flex.sdk.dir}/frameworks flex.sdk.libs.dir = ${flex.sdk.framework.dir}/libs flex.sdk.locale.dir = ${flex.sdk.framework.dir}/locale/{locale} flex.sdk.locale = en_US loc.context.root = /somename-1.0.4.0000 dev.context.root = /dev-somename qa.context.root = /somename prod.context.root =/ #this value is changed based on the build. context.root = ${dev.context.root}
<!-- All of the RemoteObjects are directed here -->
<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>
<!-- A list of the services -->
<destination id="UserService">
<properties>
<factory>spring</factory>
<source>userService</source>
</properties>
<channels>
<channel ref="my-amf"></channel>
</channels>
</destination>
<destination id="SystemService">
<properties>
<factory>spring</factory>
<source>systemService</source>
</properties>
<channels>
<channel ref="my-amf"></channel>
</channels>
</destination>
<destination id="SessionService">
<properties>
<factory>spring</factory>
<source>sessionService</source>
</properties>
<channels>
<channel ref="my-amf"></channel>
</channels>
</destination>
<destination id="VistorService">
<properties>
<factory>spring</factory>
<source>visitorService</source>
</properties>
<channels>
<channel ref="my-amf"></channel>
</channels>
</destination>
<destination id="WidgetService">
<properties>
<factory>spring</factory>
<source>widgetService</source>
</properties>
<channels>
<channel ref="my-amf"></channel>
</channels>
</destination>