0 Replies Latest reply on Nov 23, 2011 12:52 PM by jzgoda

    Way to restrict BlazeDS channel by port number?

    jzgoda

      I'm wondering if there is a way to restrict a BlazeDS channel by a port number.  I have an application that I would like to have running on different ports to different groups of users...one to internal employees, and the other to external customers.

       

      I was able to restrict the services by channel by using Spring's flex:remoting-destination, so if I connect using a given channel the security works the way I'd like it to.

       

      However, when I try to make a specific channel only run over a specific port, it doesn't seem to work. I can continue to connect to either channel over either port.

       

      Here is my channel definition:

       

      <channels>

                    <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">

                  <endpoint url="https://{server.name}:8443/{context.root}/spring/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>

                  <properties>

                            <add-no-cache-headers>false</add-no-cache-headers>

                  </properties>

              </channel-definition>

             

              <channel-definition id="web-secure-amf" class="mx.messaging.channels.SecureAMFChannel">

                  <endpoint url="https://{server.name}:8444/{context.root}/spring/messagebroker/websecureamf" class="flex.messaging.endpoints.SecureAMFEndpoint"/>

                  <properties>

                            <add-no-cache-headers>false</add-no-cache-headers>

                  </properties>

              </channel-definition>

      </channels>

       

      Even though I have specified port 8443 for the first channel, and 8444 for the second...I can access either channel from either port.

       

      Am I missing something? Or is this not even possible?

      Thanks.