tenta adicionar um FaultEvent nos 2 ROs assim:

ro.destination = 'Remote1';
ro.nomeDaChamada.addEventListener(ResultEvent.RESULT, funcaoResult);
ro.nomeDaChamada.addEventListener(FaultEvent.FAULT, funcaoFault);



na funcaoFault coloca um Alert exibindo o evento.

talves caia no fault.



Samuel Facchinello
http://desenvolvendoemflex.blogspot.com
Joinville - SC



2011/7/7 Renan <renan...@gmail.com>

> Boa Noite Galera,
>
> Estou com um problema para executar simultaneamente duas chamada aos
> servicos oferecidos pelo Spring e Blazeds.
>
> Tenho duas funcoes que buscam registros para popular duas combos.
>
> function function1() : void {
>        var service:RemoteObject = new RemoteObject();
>        service.addEventListener(ResultEvent.RESULT, sucesso);
>        service.destination = "servico1";
>        service.metodoB();
> }
>
> function function2() : void {
>        var outroServico:RemoteObject = new RemoteObject();
>        outroServico.addEventListener(ResultEvent.RESULT,
> sucessoOutroServico);
>        outroServico.destination = "servico2";
>        outroServico.metodoB();
> }
>
> Essas funcoes são invocados no evento "creationComplete()" do .mxml.
>
> O problema que invocando as duas simultaneamente:
> ex:
> function1();
> function2();
>
> Nada é retornado, nem as funcoes de sucesso ou falha é
> invocado...Estranho que não tem nenhuma mensagem de erro.
> Ativei o log de DEBUG da aplicacao para tentar identificar algo, mas
> nao tive sucesso.
> Esse é o log gerado:
> /
>
> *******************************************************************************************************/
> INFO  MessageBrokerHandlerAdapter - Channel endpoint my-amf received
> request.
> [BlazeDS]Deserializing AMF/HTTP request
> Version: 3
>  (Message #0 targetURI=null, responseURI=/1)
>    (Array #0)
>      [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage')
>        operation = 5
>        correlationId = ""
>        timestamp = 0
>        destination = ""
>        body = (Object #1)
>        clientId = null
>        headers = (Object #2)
>          DSMessagingVersion = 1
>          DSId = "nil"
>        messageId = "C11FBCFB-F781-2C46-3853-06D33099DC2D"
>        timeToLive = 0
>
> [BlazeDS]Serializing AMF/HTTP response
> Version: 3
>  (Header #0 name=AppendToGatewayUrl, mustUnderstand=true)
>    ";jsessionid=78174D941B483AB59BCA3DC48518352A"
>
>  (Message #0 targetURI=/1/onResult, responseURI=)
>    (Externalizable Object #0 'DSK')
>      (Object #1)
>        DSMessagingVersion = 1.0
>        DSId = "B1A99A70-2C09-51E5-08EE-10DF9733AFAE"
> 1.310079529197E12
> (Byte Array #2, Length 16)
> (Byte Array #3, Length 16)
> (Byte Array #4, Length 16)
>
> INFO  MessageBrokerHandlerAdapter - Channel endpoint my-amf received
> request.
> [BlazeDS]Deserializing AMF/HTTP request
> Version: 3
>  (Message #0 targetURI=null, responseURI=/1)
>    (Array #0)
>      [0] = (Typed Object #0
> 'flex.messaging.messages.RemotingMessage')
>        operation = "listarFornecedores"
>        source = null
>        timestamp = 0
>        destination = "estoque"
>        body = (Array #1)
>        clientId = null
>        headers = (Object #2)
>          DSEndpoint = "my-amf"
>          DSId = "B1A99A70-2C09-51E5-08EE-10DF9733AFAE"
>        messageId = "A1014E81-7954-2C70-B1FE-06D330450C95"
>        timeToLive = 0
> /
>
> ******************************************************************************************************************/
>
> Mas se uma unica funcao for invocada, dai funciona normalmente.
> Exibindo no log, quais foram os objetos retornados para flex...
>
> Alguem ja teve problema parecido ou tem alguma dica do que pode estar
> rolando ?
>
> --
> Você recebeu esta mensagem porque está inscrito na lista "flexdev"
> Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
> Para sair da lista, envie um email em branco para
> flexdev-unsubscr...@googlegroups.com
> Mais opções estão disponíveis em http://groups.google.com/group/flexdev

-- 
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
Para sair da lista, envie um email em branco para 
flexdev-unsubscr...@googlegroups.com
Mais opções estão disponíveis em http://groups.google.com/group/flexdev

Responder a