hi,
i'm implementing a custom communication protocol support and i'm confused
with MessageResponder -> MessageAgent -> Responder interaction.
if i understand it correctly it works like this:
1. when socket data arrives, Channel invokes MessageResponder.result()
method
2. MessageResponder's resultHandler() method gets activated and
MessageAgent.acknowledge() method is called from there
3. mx.rpc.AsyncResponder.result() method is called from
MessageAgent.acknowledge() 
4. myResultFunction(result:Object, token:Object=null) is activated
5. done

but when i use MessageResponder and AsyncRequest classes of the shelf
nothing of that gets done...
when i extended those two with following overrides, it works fine:

public class MyAsyncRequest extends AsyncRequest
        {
                private var m_responder:IResponder;                             
                
                override public function acknowledge(ackMsg:AcknowledgeMessage,
msg:IMessage):void{
                        super.acknowledge(ackMsg,msg);  
                        this.m_responder.result(msg.body);      
                }
                override public function invoke(msg:IMessage, 
responder:IResponder):void{
                        this.m_responder=responder;
                        super.invoke(msg,responder);
                }               
        }

public class OOSMessageResponder extends MessageResponder
        {                       
                override protected function 
resultHandler(message:IMessage):void{
                        this.agent.acknowledge(ack, new AcknowledgeMessage());
                }               
        }

am i misusing something here?
thnx,

tom
-- 
View this message in context: 
http://www.nabble.com/MessageResponder-%3EMessageAgent-%3EResponder-tf4963585.html#a14217738
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to