RE: [flexcoders] FDS and Remoting

2006-04-10 Thread Peter Farland
Are you trying to contact the CF event gateway, or a normal endpoint
like a CFC for RemoteObject? 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of a1
Sent: Saturday, April 08, 2006 7:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FDS and Remoting

So I'm trying to get FDS sending messages to ColdFusion remoting. I am
able to receive messages just fine from CF. I'm attempting to do this
with the following:

private function sendMessage():void {
var message: mx.messaging.messages.AsyncMessage = new AsyncMessage();
message.body = 'hello word'; 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... 

Anyone have any idea what I need to tweak in the xml files to get this
working?









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] FDS and Remoting

2006-04-10 Thread Simeon Bateman



This is a tricky error and that a lot of cf-ers run into. The first thing to check ( this is form ben forta's presentation) is to make sure you start up flex data services and then CF. This allows flex to create the correct RMI binding and then CF can connect to it.
That is all based on you having the xml settings correct though :) Are you connecting to the same destination that your consumer is using? I had to specfify the gatewayID and host explicitly for one of my projects. Mine is very simple I have included it below. Feel free to ping me on gtalk at this address if you want to do some troubleshooting.
Good Lucksimeon?xml version=1.0 encoding=UTF-8?service id=message-service class=flex.messaging.services.MessageService messageTypes=
flex.messaging.messages.AsyncMessage adapters adapter-definition id=cfgateway class=coldfusion.flex.CFEventGatewayAdapter/ /adapters destination id=ColdFusionGateway
 adapter ref=cfgateway / properties gatewayidFlex2CF/gatewayid gatewayhost127.0.0.1/gatewayhost
 /properties channels channel ref=my-rtmp/ channel ref=my-polling-amf/ /channels /destination
/service






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.