?
Solved

Flash Remoting (remote Object) with Flex and ColdFusion

Posted on 2007-11-30
5
Medium Priority
?
1,058 Views
Last Modified: 2008-10-13
So i have ColdFusion 7.02 on our dev server and I have Flex Builder on my pc.  I am trying to get my Flex app to talk with some CFCs on the dev server.  I created a new project and selected a ColdFusion Flash Remoting project
the root folder I have
Z:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\
where z:\ is the dev server
the root url I have the url that is used to get to one of that severs web page http://devserver.mydomain.com

so i create the project in z:\inetpub\wwwroot\devserver.mydomain.com\flexTest

when i try to access a cfc it says it cannot be found
the html file Flex builder created is in z:\inetpub\wwwroot\devserver.mydomain.com\flexTest\bin

this is my remote object code
<mx:RemoteObject id="entities_ro" destination="ColdFusion" source="logon_root.flexTest.cfcs.entityGateway">
            <mx:method name="getEntities" result="handleRO(event)" />
      </mx:RemoteObject>

logon_root is a coldfusion mapping set to
z:\inetpub\wwwroot\devserver.mydomain.com\

0
Comment
Question by:jduawa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 19

Accepted Solution

by:
Gary Benade earned 2000 total points
ID: 20387322
The source of the remoteobect can't be a local filesystem, it needs to be a proper URL starting with http://
0
 
LVL 1

Author Comment

by:jduawa
ID: 20388150
it isnt referenced as a local filesystem.  I have a mapping in CF called logon_root that points to z:\inetpub\wwwroot\devserver.mydomain.com\

The examples i have seen seem to reference the source of the remote object in a similar way
0
 
LVL 19

Expert Comment

by:Gary Benade
ID: 20388333
Basically the error is saying that it cant find "logon_root.flexTest.cfcs.entityGateway"; that's no suprise because if you type logon_root.flexTest.cfcs.entityGateway or z:\inetpub\wwwroot\devserver.mydomain.com\ into your web browser it will have no idea that you have a CF mapping on your server and it won't know where to go, you have to provide a direct web accesible url to the service because for all intents and purposes you could be calling a server anywhere in the world.
0
 
LVL 19

Expert Comment

by:Gary Benade
ID: 20498387
Did you  get this working?
0
 
LVL 1

Author Comment

by:jduawa
ID: 20499822
it was definitely some kind of pathing issue, but i got it working
0

Featured Post

Ransomware Attacks Keeping You Up at Night?

Will your organization be ransomware's next victim?  The good news is that these attacks are predicable and therefore preventable. Learn more about how you can  stop a ransomware attacks before encryption takes place with our Ransomware Prevention Kit!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
The top devops trends for 2017 are focused on improved deployment frequency, decreased lead time for change and decreased MTTR.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question