Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Example of passing info from FDS to ColdFusion?

Avatar

Level 1
Forta's example shows pretty nicely how to send info from CF
to FDS, but I am having trouble finding how to do the opposite
(send objects back to CF from FDS). Anyone have any clues or
examples, I would appreciate it. I thought maybe the easiest way
would be to do traditional remoting calls from the Flex FDS to CF,
but I can't seem to get the AMF settings to work right in
flex-remoting-service.xml. It doesn't like a source of * or a
source of my dot notation from my cf root to my cfc. Any ideas on
just getting that working would be helpful also.
3 Replies

Avatar

Level 1
Got a little further by using:



private function sendMessage():void {

var message: mx.messaging.messages.AsyncMessage = new
AsyncMessage();

message.body = 'I rule';

producer.send(message);

mx.controls.Alert.show('sent');

}



<mx:Producer id="producer" destination="ColdFusionGateway"
resendAttempts="0" acknowledge="acknowledgeHandler(event)"
fault="faultHandler(event)"/>



But, now I get the following error from FDS:



Unable to contact the RMI registry on host 127.0.0.1:8500 to
look for gateway flexGateway: java.rmi.ConnectIOException: error
during JRMP connection establishment...

Avatar

Level 1
Here is a topic with links to sample applications:




null

Avatar

Level 1
Here is a topic with links to sample applications:




Link
to Thread