2013-03-18 4 views
0

blazeDS 원격 서비스는 Spring을 통해 구성합니다. 원격 서비스의 기본 채널을 재정의하려고합니다. '채널 보안-AMF'채널을 통해 접근 대상 'CustomerService를'하지 :<flex : remoting-destination> 태그의 [spring] channels 속성이 작동하지 않습니다.

<flex:remoting-destination ref="flexCustomerService" destination-id="customerService" channels="customers-channel-secure-amf, customers-channel-amf"/>

는 그러나 런타임에 나는 플렉스 오류 Server.Processing를 얻을.

+0

나만의 맞춤 AMF 채널을 만드시겠습니까? 정의한 채널 코드를 제공 할 수 있습니까? – Miral

답변

0

문제는 플렉스 측면에서 맞춤 채널 세트를 정의하는 것이 었습니다. 필자는 모든 원격 서비스를 flex-servlet.xml에 정의했는데, 이것은 flex 컴파일에 사용되지 않습니다. 그래서 플렉스 사이드에 맞춤 채널 태그에 대해 알리기 위해 channelSet 속성을 <mx:RemoteObject>에 추가했습니다.

<mx:RemoteObject id="customerService" destination="customerService" fault="dispatchFaultEvent(event)" makeObjectsBindable="true" channelSet="{customerServiceSet}"/>