Pessoal,

Estou precisando criar dinamicamente o destino do RemoteObject!

Utilizo a seguinte função para criar este destino

public void createDestinations() {
        // Get the default messagebroker
        messageBroker = MessageBroker.getMessageBroker(null);
        // get the remoting service and add your own destination in my case
my
        // destination is called
        // productService
        myDestination = (RemotingDestination) messageBroker.getService(
                "remoting-service").createDestination("testeService");
        // set the source property of the destination
        myDestination.setSource("jms.Teste");
        // attach the default java adapter to your service adapter
        serviceAdapter = myDestination.createAdapter("java-object");
        // configure some properties to de access config
        accessConfig.addProperty("use-mappings", "true");
        accessConfig.addProperty("method-access-level", "remote");
        serviceAdapterConfig.addProperty("access", accessConfig);
        // we pass the created serviceAdapterConfig and the java adapter to
the
        // serviceAdapter
        // so we can initialize our adapter
        serviceAdapter.initialize("java-object", serviceAdapterConfig);
        myDestination.setAdapter(serviceAdapter);
        // set the channel to my-amf
        myDestination.addChannel("my-polling-amf");
        messageBroker.getService("remoting-service").addDestination(
                myDestination);
        myDestination.start();
    }

Esta função consegue criar perfeitamente o destino, só que na hora que vou
adicionar este destino apresenta a seguinte mensagem

[RPC Fault faultString="[MessagingError message='Destination 'testeService'
either does not exist or the destination has no channels defined (and the
application does not define any default channels.)']"
faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to
'testeService'"]

Queria saber se alguém poderia me ajudar.

-- 
Luís Filipe Guedes Motta
Analista de Sistemas - Java, .Net, Flex, Silverlight e Fortran
Consultor de SmartCard - JavaCard
(12)3221-4349
(12)9735-6735

-- 
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