0 Replies Latest reply on Mar 12, 2007 2:44 PM by rottmanja

    Multiple Endpoints Single Channel

    rottmanja
      I am working on a project, that requires instancing of our flex application. One idea that I came up with was to allow for multiple urls to access the same data based on several variables.

      One key components for this idea to work is being able to use multiple endpoints with in the same channel in my services-config.xml file.

      Right now this is what my channel setup looks like.

      <channels>
      <channel-definition id="cfamf"
      class="mx.messaging.channels.AMFChannel">
      <endpoint uri=" http://admin.mydomain.com/flex2gateway/"
      class="flex.messaging.endpoints.AMFEndpoint"/>
      <properties>
      <polling-enabled>false</polling-enabled>
      <serialization>
      <instantiate-types>false</instantiate-types>
      </serialization>
      </properties>
      </channel-definition>

      <channel-definition id="cfamf"
      class="mx.messaging.channels.AMFChannel">
      <endpoint uri=" http://user.mydomain.com/flex2gateway/"
      class="flex.messaging.endpoints.AMFEndpoint"/>
      <properties>
      <polling-enabled>false</polling-enabled>
      <serialization>
      <instantiate-types>false</instantiate-types>
      </serialization>
      </properties>
      </channel-definition>
      </channels>

      Ideally I would prefer it to act like this.

      <channel-definition id="cfamf"
      class="mx.messaging.channels.AMFChannel">
      <endpoint uri=" http://admin.mydomain.com/flex2gateway/"
      class="flex.messaging.endpoints.AMFEndpoint"/>
      <endpoint uri=" http://user.mydomain.com/flex2gateway/"
      class="flex.messaging.endpoints.AMFEndpoint"/>
      <properties>
      <polling-enabled>false</polling-enabled>
      <serialization>
      <instantiate-types>false</instantiate-types>
      </serialization>
      </properties>
      </channel-definition>
      </channels>