Update

I’ve resolved the issue described in this article and wrote a tutorial based on my research:
Tutorial: Flex and ColdFusion Communication via Event Gateways

Problem

I’ve run into a snag getting ColdFusion to send messages to a destination set up for Flex Messaging. I’ve gone through all the tutorials and set up an event gateway in my local admin using the FlexMessaging type…
flex_messaging_cf_gateway

but any attempt to send a message to it….

x = structNew();
x.body = "hello world";
x.destination = "ColdFusionGateway";
sendGatewayMessage("test", x);

results in the following message…

Unable to find the Flex adapter for destination ColdFusionGateway
 in the RMI registry on localhost:1099.

The Flex adapter may not be running or the destination may be incorrect.

The error occurred in C:\ColdFusion8\servers\cfusion\cfusion-ear\cfusion-war\webapps\test\scribble.cfm: line 24

22 : x.body = "hello world";
23 : x.destination = "ColdFusionGateway";
24 : sendGatewayMessage("test", x);
25 :
26 :</cfscript>

I have modified my ColdFusion server to run BlazeDS, and I’m hoping that is not the issue. I’ll perform a clean installation and see if it works that way. The strangest thing about this is that when I send a message from a Flex client to the same destination, it finds the adapter just fine (this is all set up on a ColdFusion application server) so the fact that FMS works, but ColdFusion Event Gateways don’t is troubling.