In this video I will set up a Flex project that will use the Railo 3.0 server and a coldfusion CFC to query a MySQL Database. The result that we get back will be displayed into a Flex List component.
Download my source files here HelloFromRailoQuery.zip



Groovymag
Excellent tutorial!! I was trying to connect to CFCs on Railo 3 via Flex and was hitting roadblocks. I didn’t realize I didn’t need BlazeDS! This was the only example I found on the web! Way to be up on the technology! After your video I’m right behind you!
So glad this helped you out man. I am hoping the Railo with Blaze built in will be out soon. There will be better support for AMF. Namely the will be putting in AFM 3 because that what Blaze has.
You keep up the good work on becoming a Flex Ninja.
So, I got the example to work! w00t! Now I’m trying to pass data from a text input in Flex to my Railo CFC. I’ve done this with Flex/CFMX8 using mx:RemoteObject. Can this also be done using NetConnection?
Yeah it is pretty easy you would do something like this….
nc.call(“remoteFunctionName”, responder, “params you want to pass”);
Hey Matthew,
Thanks for this tutorial. Very helpful in getting started with Railo.
A couple of comments and questions:
It would be great to have the artgallery mysql file included in the .zip – or to know how to extract it from the coldfusion ‘getting started’ kit…
The Coldfusion/Railo Part 1 – that you recommend viewing before going on with Part 2, isn’t there. When I clicked on the link it took me to a Red5 tutorial…
For me ( on OS 10.4.11) toggle full screen doesn’t work. I had to copy the bliptv embedlink into the browser to get full screen.
Anyway – my question: hope it doesn’t seem too stupid. Can I simply upload the Railo server with my files to my web host , and then run my site/CMS through it? Or does the host need to have some particular permissions/ spec.s ?
I hope the answer is yes. I’d love to use coldfusion – but my present host doesn’t support it.
Thanks again.
@sine
thanks so much for your suggestion of including the zip. Really to be honest, I have gotten more into Java on the server side coding so I really don’t mess with Rilo much any more.
As for your question I don’t really have a step by step process but I do know that you could not just upload and run it. There is an installation process and if you have shared hosting account I don’t think you will be able to install unless the company is willing to do that for you. The best option would be to look at the requirements for installing Rilo and get a VPS hosting account and install it yourself.
Hope that pushes you in the right direction. Thanks for the question.