1 Reply Latest reply: Nov 16, 2013 4:31 AM by Cato Paus RSS

    Understanding Channels

    Ukie Community Member

      If I have a bunch of different data services object, each data service object DOES NOT need to have a new RTMP Channel correct?

       

      What is the benefit of adding a new RTMP channel to the channelset of dataservice object? Should I not have one or two channels setup on a channelset and ensure each dataservice uses that channelset?   Does each dataservice need to be assigned a channelset?   The destination point is fixed and is only one server.

       

       

       

      I will always have something like this..
      var myAC:ArrayCollection = new ArrayCollection;

      var myDS:DataService = new DataService("myDSInfo");

      myDS.autoCommit = false;

       

      I would not need to do this for each dataservice correct?

      var rtmpChannel:RTMPChannel = new RTMPChannel("my-rtmp", myServer);

      var channelSet:ChannelSet = new ChannelSet();

      channelSet.addChannel(rtmpChannel);

      myDS.channelSet = channelSet;

       

       

      Any insight on this would be great. 

        • 1. Re: Understanding Channels
          Cato Paus Community Member

          yes!, look into dataservices-samples.war samples in LCDS install folder.

           

          dataservices-samples.war\salesbuilder.

          source for this is under  dataservices-samples.war\WEB-INF\flex-src

           

          look into this - flex-src.zip\salesbuilder\src\com\adobe\sample\salesbuilder\util

          study this DataSreviceHelper.as and ChannelManager.as