By Ben Forta | Article Rating: |
|
March 23, 2006 11:00 AM EST | Reads: |
18,841 |
ColdFusion Flash Remoting Configuration in Flex 2 Beta 2

<services-config xmlns="http://www.macromedia.com/2005/flex-service-config">
<services>
<service id="coldfusionsamples-service"
class="flex.messaging.services.RemotingService"
messageTypes="flex.messaging.messages.RemotingMessage">
<adapters>
<adapter-definition id="cf-object" class="coldfusion.flash.messaging.ColdFusionAdapter" default="true"/>
</adapters>
<destination id="ColdFusion">
<channels>
<channel ref="my-cfamf"/>
</channels>
<properties>
<source>*</source>
<!-- define the resolution rules and access level of the cfc being invoked -->
<access>
<!-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -->
<use-mappings>false</use-mappings>
<!-- allow "public and remote" or just "remote" methods to be invoked -->
<method-access-level>remote</method-access-level>
</access>
<property-case>
<!-- cfc property names -->
<force-cfc-lowercase>false</force-cfc-lowercase>
<!-- Query column names -->
<force-query-lowercase>false</force-query-lowercase>
<!-- struct keys -->
<force-struct-lowercase>false</force-struct-lowercase>
</property-case>
</properties>
</destination>
</service>
</services>
<security>
<login-command class="flex.messaging.security.JRunLoginCommand" server="JRun"/>
</security>
<channels>
<channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://localhost:8500{context.root}/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
<serialization>
<custom-deserializer type="typed-object" class="coldfusion.flash.messaging.io.amf.serializers.TypedObjectDeserializer" />
</serialization>
</properties>
</channel-definition>
</channels>
<logging>
<target class="flex.messaging.log.ConsoleTarget" level="Debug">
<properties>
<prefix>[Flex] </prefix>
<includeDate>false</includeDate>
<includeTime>false</includeTime>
<includeLevel>false</includeLevel>
<includeCategory>false</includeCategory>
</properties>
<filters>
<pattern>Endpoint.*</pattern>
<pattern>Service.*</pattern>
<pattern>Configuration</pattern>
<pattern>Message.*</pattern>
</filters>
</target>
</logging>
<system>
<locale>
<default-locale>en</default-locale>
<supported-locale>de</supported-locale>
<supported-locale>fr</supported-locale>
<supported-locale>es</supported-locale>
</locale>
<redeploy>
<enabled>true</enabled>
<watch-interval>20</watch-interval>
<watch-file>{context.root}/WEB-INF/flex/flex-enterprise-services.xml</watch-file>
<touch-file>{context.root}/WEB-INF/web.xml</touch-file>
</redeploy>
</system>
</services-config>
If you are not using ColdFusion's integrated HTTP server, be sure to change the port from 8500 (or just drop the port altogether if using port 80).
Published March 23, 2006 Reads 18,841
Copyright © 2006 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Ben Forta
Ben Forta is Adobe's Senior Technical Evangelist. In that capacity he spends a considerable amount of time talking and writing about Adobe products (with an emphasis on ColdFusion and Flex), and providing feedback to help shape the future direction of the products. By the way, if you are not yet a ColdFusion user, you should be. It is an incredible product, and is truly deserving of all the praise it has been receiving. In a prior life he was a ColdFusion customer (he wrote one of the first large high visibility web sites using the product) and was so impressed he ended up working for the company that created it (Allaire). Ben is also the author of books on ColdFusion, SQL, Windows 2000, JSP, WAP, Regular Expressions, and more. Before joining Adobe (well, Allaire actually, and then Macromedia and Allaire merged, and then Adobe bought Macromedia) he helped found a company called Car.com which provides automotive services (buy a car, sell a car, etc) over the Web. Car.com (including Stoneage) is one of the largest automotive web sites out there, was written entirely in ColdFusion, and is now owned by Auto-By-Tel.
![]() |
Sys-Con India News Desk 03/23/06 12:06:34 PM EST | |||
Several of you have contacted me with problems using Flex beta 2 to connect to ColdFusion via Flash Remoting. A couple of the issues turned out to be configuration problems in flex-enterprise-services.xml (installed under WEB-INF\flex, and needed by the Flex compiler). Here is the file as it works for me: |
![]() |
Sys-Con Italy News Desk 03/22/06 11:30:13 AM EST | |||
Several of you have contacted me with problems using Flex beta 2 to connect to ColdFusion via Flash Remoting. A couple of the issues turned out to be configuration problems in flex-enterprise-services.xml (installed under WEB-INF\flex, and needed by the Flex compiler). Here is the file as it works for me: |
![]() |
Sys-Con Canada News Desk 03/22/06 10:28:38 AM EST | |||
Several of you have contacted me with problems using Flex beta 2 to connect to ColdFusion via Flash Remoting. A couple of the issues turned out to be configuration problems in flex-enterprise-services.xml (installed under WEB-INF\flex, and needed by the Flex compiler). Here is the file as it works for me: |
![]() |
Sys-Con Brasil News Desk 03/21/06 05:58:58 PM EST | |||
Several of you have contacted me with problems using Flex beta 2 to connect to ColdFusion via Flash Remoting. A couple of the issues turned out to be configuration problems in flex-enterprise-services.xml (installed under WEB-INF\flex, and needed by the Flex compiler). Here is the file as it works for me: |
![]() |
Sys-Con Belgium News Desk 03/21/06 04:27:28 PM EST | |||
Several of you have contacted me with problems using Flex beta 2 to connect to ColdFusion via Flash Remoting. A couple of the issues turned out to be configuration problems in flex-enterprise-services.xml (installed under WEB-INF\flex, and needed by the Flex compiler). Here is the file as it works for me: |
![]() |
SYS-CON Belgium News Desk 03/21/06 03:38:16 PM EST | |||
Several of you have contacted me with problems using Flex beta 2 to connect to ColdFusion via Flash Remoting. A couple of the issues turned out to be configuration problems in flex-enterprise-services.xml (installed under WEB-INF\flex, and needed by the Flex compiler). Here is the file as it works for me: |
Apr. 19, 2018 02:00 PM EDT Reads: 1,958 |
By Pat Romanski Apr. 19, 2018 01:45 PM EDT Reads: 1,076 |
By Elizabeth White Apr. 19, 2018 01:30 PM EDT Reads: 1,477 |
By Pat Romanski Apr. 19, 2018 01:30 PM EDT Reads: 2,035 |
By Liz McMillan Apr. 19, 2018 01:15 PM EDT Reads: 1,556 |
By Pat Romanski ![]() Apr. 19, 2018 12:45 PM EDT Reads: 5,147 |
By Liz McMillan ![]() Apr. 19, 2018 12:45 PM EDT Reads: 3,542 |
By Yeshim Deniz Apr. 19, 2018 12:30 PM EDT Reads: 3,853 |
By Yeshim Deniz Apr. 19, 2018 12:15 PM EDT Reads: 4,753 |
By Liz McMillan ![]() Apr. 19, 2018 11:00 AM EDT Reads: 6,972 |
By Elizabeth White ![]() Apr. 19, 2018 10:45 AM EDT Reads: 4,398 |
By Yeshim Deniz ![]() Apr. 19, 2018 08:30 AM EDT Reads: 1,796 |
By Liz McMillan Apr. 19, 2018 08:15 AM EDT Reads: 2,419 |
By Yeshim Deniz Apr. 19, 2018 08:00 AM EDT Reads: 2,964 |
By Pat Romanski ![]() Apr. 19, 2018 06:00 AM EDT Reads: 5,720 |
By Liz McMillan ![]() Apr. 19, 2018 06:00 AM EDT Reads: 1,996 |
By Pat Romanski Apr. 19, 2018 05:30 AM EDT Reads: 1,672 |
By Yeshim Deniz ![]() Apr. 19, 2018 05:15 AM EDT Reads: 1,795 |
By Pat Romanski ![]() Apr. 19, 2018 05:00 AM EDT Reads: 3,650 |
By Elizabeth White Apr. 19, 2018 03:30 AM EDT Reads: 1,790 |