1 Reply Latest reply on May 4, 2006 8:31 AM by Peter Farland

    Multi Service Data?

    DevNullsp Level 1
      At first sorry for my english.

      I have a problem, I have not only one host, I have 2 or 3 host and I need to use DataService (rpc - RemoteObject) for my flex app client. I dont like WebService for this.

      ¿how? if only its possibol to connect to destination at you flex client download host.

      ¿its possibol to connect to other servers?

      if not i think its a very severe limitation of FDS.


        • 1. Multi Service Data?
          Peter Farland Level 3
          You can programmatically create appropriate Channels at runtime and then add them to a ChannelSet. You can then replace the ChannelSet on the RemoteObject instance.

          import mx.messaging.ChannelSet;
          import mx.messaging.Channel;
          import mx.messaging.channels.AMFChannel;


          var channelSet:ChannelSet = new ChannelSet();
          var channel:Channel = new AMFChannel("my-amf", http://localhost:8700/cfusion/messagebroker/amf");
          remoteObject.channelSet = channelSet;


          Note that when you construct a channel, such as a new AMFChannel, you give a channel-id and an endpointURL to the constructor. You can set the channel-id to null if you don't wish to have the remote endpoints validate that you are contacting them via the correct technology/type of Channel.