1 Reply Latest reply on Apr 18, 2007 12:40 PM by toofless

    rtmp and CF Remoting on same Flex2 server

      Hi all,

      I've got a Flex2 server instance on JRun4, ColdFusion 7.0.2 running as another application.

      I can setup the config files using the "coldfusion.flash.messaging.ColdFusionAdapter" service declarartion in the services part of the services-config.xml file. As in below:
      [service id="coldfusion-flashremoting-service"

      [adapter-definition id="cf-object" class="coldfusion.flash.messaging.ColdFusionAdapter" default="true"/]

      [destination id="ColdFusion"]
      [channel ref="my-cfamf"/]
      [!-- define the resolution rules and access level of the cfc being invoked --]
      [!-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. --]
      [!-- allow "public and remote" or just "remote" methods to be invoked --]

      [!-- cfc property names --]
      [!-- Query column names --]
      [!-- struct keys --]

      [service-include file-path="remoting-config.xml" /]
      [service-include file-path="proxy-config.xml" /]
      [service-include file-path="messaging-config.xml" /]
      [service-include file-path="data-management-config.xml" /]

      This setup, however, renders the default rtmp channel definition useless (I've tried changing ports, etc) - any time I try to do a producer.send, I get the error "Client.Error.MessageSend:Send failed:Channel.Connect.Failed error undefined url:'rtmp://localhost:2038'".

      As soon as I remove the coldfusion-specific remoting service, the rtmp stuff works great - but now I can't connect to CFC's in my CF app.

      I get the exact same results when replacing the default remoting-config.xml file w/ the stuff from the cf remoting service declaration sample above.

      Is it possible to run these two services in the same application server?

      To clarify, I want to communicate to CFC's in the ColdFusion app, but I want the Flex apps to talk to one-another without using the CF rtmp gateway.

      Thanks - any help much appreciated!