Nov 25, 2009

Railo and Flash remoting ( Flex )

Flashremoting works with Railo. It works in the same way it does with ColdFusion and it's actually quite easy to setup once you know how. This short screen cast demonstrates.



Click here for a high quality video.

Here is a sample web.xml



Take a look at this post for a working demo:

( right click to view source )

http://vc.kukiel.net/demos/railoremoting/

5 comments:

  1. hi Paul,
    Thanks for this post. I've just started playing a bit with Flex and trying to get it working with Railo. One comment:
    In your video, you mentioned how you have to change the name of the MessageBrokerServlet for additional web contexts where you want to set up remoting. But I read in a couple of places that you only have to change the messageBrokerId param-name's param-value tag to get it to work. So

    <param-name>messageBrokerID</param-name>
    <param-value>WEB2MessageBroker</param-value>

    See:
    http://groups.google.com/group/railo/browse_thread/thread/e02ba5bcd7274de9/e157c737913919af?lnk=gst&q=Flash+remoting#e157c737913919af
    and
    https://jira.jboss.org/jira/browse/RAILO-400
    ReplyDelete
  2. I only needed to change:

    messageBrokerId

    And it worked fine.
    ReplyDelete
  3. Hi Paul
    nice post.I followed your instructions, and while the flex2gateway page works on localhost:8888, when I call the page from outside like myhostname.com/flexgateway it doesn't work.Needless to say that the cfc call from flex throws this error:Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://www.myhostname.com/flex2gateway/'"]

    Any suggestions?No firewall enabled.System:CentOS with Tomcat and Railo. Client:Flex3.
    ReplyDelete
  4. If it's getting 404's take a look at this. The servlet mapping probably isn't added as it's not by default on tomcat.

    http://groups.google.com/group/railo/browse_thread/thread/e02ba5bcd7274de9

    Hope that helps.
    ReplyDelete