So dropping a Railo war on GlassFish and being up an running is easy but flashremoting dosn't work right away. As a flex developer this is a show stopper for me but lucky that's also easily solved.
Basically all that's needed is to add the MessageBrokerServlet and /flex2gateway mappings to the web.xml
You'll find the web.xml in the directory you deployed the application to in my case:
C:\glassfishv3\glassfish\domains\domain1\applications\railo\WEB-INF
Pasting the xml into my blog looked a little nasty so I used pastebin. You can see the WEB.xml after I added the additions here. You should have no issues copying all of this and pasting it into your web.xml over writing everything.
There is no need to re-deply Railo simple restart the application to pickup the changes.
To confirm the changes try ( in my case ) http://railolocal/flex2gateway if its a plain white page its good if it 404's then you might have made a typo.
Happy Flex (flash) remoting.
Railo Apache and Glassfish
ColdFusion 9 Apache and Glassfish

7 comments: