Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Example of passing info from FDS to ColdFusion?

drisgill
Level 1
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
drisgill
Level 1
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...
Roks-1
Level 1
Level 1
Here is a topic with links to sample applications:




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




Link
to Thread