Hi Radu,

this is actually working in Royale. Being said that We (Greg and I) have
some fixes for RemoteObject that still didn't put on Apache Royale. Will
upload soon as we end our migration (hopefully 1-2 weeks from now). But you
can start trying a simple example.

I recomend you to create a try the following test app :

Java part:
https://github.com/apache/royale-asjs/tree/develop/examples/amf/SampleAmfWebApp

Royale client:
https://github.com/apache/royale-asjs/tree/develop/examples/mxroyale/RemoteObjectAMFTest

and check this:
https://github.com/apache/royale-asjs/wiki/Apache-Royale-communication-with-AMF-and-RemoteObject

things like turn enable-small-messages to false are very important to have
success

Just let you know that we are migrating a flex application using Jewel and
MX RemoteObject and we are receiving/sending very complex graphs with AMF
successfully.
As we get some free time (hopefully 2-3 weeks from now), Greg had in mind
to complete RemoteObject implementation with enable-small-messages support
too.

thanks


El jue., 17 ene. 2019 a las 13:08, radu birsan (<[email protected]>)
escribió:

> Hello,
>
>    I have a simple flex login module that uses mx:ChannelSet. Any idea on
> how to make this work with Roylale js.
>
> <?xml version="1.0" encoding="utf-8"?><mx:Application 
> xmlns:fx="http://ns.adobe.com/mxml/2009";
>                               xmlns:mx="library://ns.adobe.com/flex/mx"  
> creationComplete="main()">
>       <fx:Script>
>               <![CDATA[
>                       import mx.messaging.ChannelSet;
>                       import mx.messaging.channels.AMFChannel;
>                       import mx.messaging.channels.StreamingAMFChannel;
>                       import mx.messaging.messages.CommandMessage;
>                       import mx.rpc.AsyncResponder;
>                       import mx.rpc.AsyncToken;
>                       import mx.rpc.events.FaultEvent;
>                       import mx.rpc.events.ResultEvent;
>                       public var cs:ChannelSet=null;
>                       private var amfChannel:AMFChannel;
>                       public var serverSTUB:String = 
> "http://voip-manager.spherecom.com:9080";
>
>                       public function main():void
>                       {
>                               cs = new ChannelSet();
>                               amfChannel = new 
> AMFChannel("my-longpolling-amf",serverSTUB + "/RiaService" + 
> "/messagebroker/amflongpolling");
>                               cs.addChannel(amfChannel);      
>                       }
>                       
>                       public function checkAPIVersion(event:ResultEvent = 
> null, token:Object = null):void
>                       {
>                               but.label = "checkAPIVersion Success";
>                       }
>                       
>                       private function handleLoginFault(event:FaultEvent = 
> null, token:Object = null):void
>                       {
>                               but.label = "Fault";
>                       }
>
>                       protected function login(event:MouseEvent=null):void
>                       {
>                               var token:AsyncToken = 
> cs.login('rbirsan'.toUpperCase(), "ThisISWork?");
>                               token.addResponder(     new 
> AsyncResponder(checkAPIVersion, handleLoginFault));
>                       }
>                       
>               
>
>               ]]>
>       </fx:Script>
>       <mx:Button label="Login!" id="but" width="200" click="login(event)" 
> /></mx:Application>
>
>
> Thank you,
> Radu
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to