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
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…

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.
5 Responses for "ColdFusion Event Gateway for Flex Messaging"
This blog entry may help:
http://www.coldfusionjedi.com/index.cfm/2009/4/19/Have-you-installed-BlazeDS-with-ColdFusion
I’ve got all those files correctly installed. I’ve been able to use Flex Messaging from the Flex side, just not using event gateways from CF.
Maybe it was just a cut and paste issue in your post, but the first part shows a destination of ColdFusionGateway while your error message shows TimeTracker. Are you sure you are calling the module you expected? Maybe you have a mapping issue and aren’t really executing the module you wanted.
Yup, copy and paste error (corrected). I was constructing the post while trying to figure this out so I had things changed in different places.
[...] and ColdFusion, so yesterday I jumped on Google and started researching and ran into some roadblocks. However, after some monkeying around and more poring over of documentation and articles, I finally [...]
Leave a reply