Flash remoting in Railo

February 8, 2007 · By Gert Franz · 8 Comments

The past of days a couple people asked about flash remoting. They suspected that it would not work with Railo.Railo in version 1.0 supports only the classic way of interacting with flash remoting via calls to .cfm files. Interaction via components (.cfc) will be supported in the next beta release of Railo.
"So how you can use the "classic" way to interact with flash remoting?"

Example
create a file named /examples/echo.cfm. In this file add the following lines for a simple echo function: <cfset flash.result=flash.params> Now you have a flash service called examples.echo([...]) that simply returns your parameters from your request. To test this service you need to do the following:
  1. download the generic AMF Client as part of openAMF
  2. Add the following data to the client.
    The following example is for a standard Railix version
    Gateway Url:http://localhost:8888/flashservices/gateway
    Service Nameexamples
    Service Methodecho
    arguments1,2,3
  3. have fun
The result looks like this:

Tags: Features · Flash · Railo 1.1

8 responses so far ↓

  • 1 Tom Chiverton // Jun 25, 2007 at 5:23 PM

    &quot;Interaction via components (.cfc) will be supported in the next beta release of Railo&quot;
    Rar ! That really does make Railo viable for me to use at home. The 'real' ColdFusion is a bit heavy for something I only want to RemoteObject to !
  • 2 Gert Franz // Jun 25, 2007 at 5:28 PM

    Well, Railo 2.0 RC1 already supports it...
    The RC3 will be released tomorrow.

    Gert
  • 3 Tom Chiverton // Jun 25, 2007 at 5:32 PM

    Great news !
    Are Reactor/Transfer/ColdSpring ticking along with it now too ?
  • 4 Gert Franz // Jun 25, 2007 at 5:36 PM

    Reactor and Coldspring already work with Railo RC2. With Transfer we have some minor issues we try to solve with the RC3. Stay tuned...
    I will blog about it as soon as possible.
  • 5 Speed dating // Sep 28, 2007 at 11:30 AM

    Great news, thanks for your post!
  • 6 Matthew Wallace // Sep 2, 2008 at 2:16 PM

    Gert,

    Thanks for the post. I have not gotten this to work using Flex, or Actionscript 3. I would be very greatful if you would be willing to work with me on getting the Remoting to work without any issues. I have some experiance using AMF with CF8, AMFPHP, and Red5. I would love to get it working with Railo.

    I will be writing a blog post and also doing an example video if we can get it working for the Flex and Flash guys out there. I know you plan on doing this with 3.1 with Blaze. Maybe a sneak peak of that would help or if the the Built in OpenAMF works then I am totally cool with that.

    -Matthew
  • 7 Streit Michael // Sep 2, 2008 at 5:24 PM

    We have open a ticket for this:
    https://jira.jboss.org/jira/browse/RAILO-91
  • 8 Matthew Wallace // Sep 4, 2008 at 5:20 PM

    got this to work with Railo 3.0 and Flex. I posted a video tutorial on my site on how to do the Flash Remoting using the AMF gateway in Railo.

    http://flashalisious.com/2008/09/04/using-actionscript-3-and-flex-builder-to-make-amf-remoting-calls-to-railo-cfcs/

Leave a Comment

Leave this field empty: