Pessoal,

Ninguém sabe mesmo.

Fiz um teste usando o remoting-config trocando informações entre java
e flex e funcionou.

Agora usando o messaging-config não e está configurado desta forma:

<destination id="myNewDestination">
        <properties>
                <network>
                        <session-timeout>0</session-timeout>
                </network>
                <server>
                        <max-cache-size>1000</max-cache-size>
                        <durable>false</durable>
                </server>
        </properties>
        <channels>
                <channel ref="my-polling-amf" />
        </channels>
</destination>

E o meu producer assim:

<mx:Producer id="producer" destination="myNewDestination" />

Onde será que estou falhando?

Obrigado,
Vinicius.

On 2 jun, 11:15, Vinicius <vinu...@gmail.com> wrote:
> Pessoal,
>
> Estou fazando o teste deste exemplo:
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="init()">
>         <mx:Script>
>                 <![CDATA[
>                         import mx.messaging.events.MessageEvent;
>                         import mx.messaging.messages.AsyncMessage;
>
>                         private function init():void
>                         {
>                                 consumer.subscribe();
>                         }
>
>                         private function pub():void
>                         {
>                                 var message:AsyncMessage = new AsyncMessage();
>                                 message.headers.myCustomHeader = "hello 
> header";
>                                 message.body = "hello flex message service!";
>                                 producer.send(message);
>                         }
>
>                         private function onMsg(event:MessageEvent):void
>                         {
>                                 trace(event.message.body);
>                         }
>                 ]]>
>         </mx:Script>
>         <mx:Producer id="producer" destination="myNewDestination" />
>         <mx:Consumer id="consumer" destination="myNewDestination"
> message="onMsg(event)" />
>         <mx:Button click="pub()" />
> </mx:Application>
>
> Para tanto eu fiz o download do BlazeDS (blazeds-bin-3.2.0.3978.zip) e
> copiei para a pasta WEB-INF do meu projeto os dados da pasta WEB-INF
> do BlazeDS. Mas quando tento rodar o exemplo nada acontece, estou
> esquecendo de algo?
>
> Ops, fiz a seguinte configuração no messaging-config.xml:
>
> adicionei:
> <destination id="myNewDestination">
>         <properties>
>                 <network>
>                         <session-timeout>0</session-timeout>
>                 </network>
>                 <server>
>                         <max-cache-size>1000</max-cache-size>
>                         <durable>false</durable>
>                 </server>
>         </properties>
>         <channels>
>                 <channel ref="my-polling-amf" />
>         </channels>
> </destination>
>
> Obrigado,
> Vinicius.
--~--~---------~--~----~------------~-------~--~----~
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