HOME
Andrew Schwabe's Blog : ColdFusion

Multi-web configuration for Railo 3.1 and BlazeDS

Seems like lots of people are having a problem with Railo configured for multiple websites on a single host, but also need to support AMF via BlazeDS.

The common symptom is when you restart railo services, sometimes you will get a big error instead of your web page that says something like:


MessageBroker failed to start: flex.messaging.config.ConfigurationException: MessageBroker already defined from MessageBrokerServlet with init parameter messageBrokerId = '__default__'

Here is what I found to work for me:

1. Read this post by Roland Ringgenberg at the railo google group and follow the directions to install the java jar and edit the flex/services-config.xml file:


<services>
<service-include file-path="remoting-config.xml" />
<service-include file-path="proxy-config.xml" />
<service-include file-path="messaging-config.xml" />
        <service id="railoBootstrap" class="railo.runtime.net.amf.RailoMessageBrokerBootstrapService">
    <properties>
    <messageBrokerId>yourcustomBroker</messageBrokerId>
</properties>
</service>
</services>

2. For me, railo runs on port 8600 internally, and I have IIS configured to serve up content. BlazeDS however doesn't get mapped through IIS, so you need to talk on the native port (again, for MY configuration, YMMV). So to access it, i needed to open TCP port 8600 through the firewall.

3. Once i could talk to the server over port 8600, I changed my flex app that uses remoting to point to http://myserver:8600/flashservices/gateway/ and eveyrthing worked great!

One other interesting observation... When using Flash remoting with CF7/8/9, you can talk to your CFCs and invoke methods that are set to "public." With BlazeDS, your methods need to be marked as "remote" to be accessible. Minor syntax difference, but a huge impact on security. make sure you secure your CFCs!

CF United 09 Presentation Files - Google App Engine and Flex

Ok folks, here are my preso files for my CF United 2009 talk on Google App Engine and Flex. Is this the final version? Sure. Until I change it. I shall resist doing that...

Here is the powerpoint presentation download: 294_Andrew_Schwabe_Google_App_Engine_Flex.ppt

Here is the full download (warning, this is big!) Contains all 4 google app engine java projects, all 4 flex projects and the powerpoint file. The download is big because of all the jar files. I will try to have a USB key with me so if you want a super fun time instant copy instead of downloading it, I should be able to do that.

Full download (94MB, zipped): CFun09_GAE_Files.zip

For those of you web surfers interested -- demo 4 project includes a fix for allowing Flex app using AMF to retrieve Google Account information (using ajax and a custom auto servlet) so your Flex apps can determine if you are logged in, and get your user identifier if you are logged in.

CF United Update: Google App Engine + Flex

My talk at CFUnited has changed a bit... Since the topic was chosen a while back, Google has released a Java developer environment and eclipse plugin for Google App Engine (GAE). Since Java is a whole lot closer to CFML than python is, I've updated all my code and presentation to focus on the Java application architecture, and how to connect it to Flex.

I've even got some tidbits on how to get CFML running on Google App Engine !

Be sure to come on out and learn about the exciting new "super scalable" web application system running on Google's free hosting infrastructure.

FusionDox 2009 is released!

After many months of hard work, we have released the 2009 edition of FusionDox. Lots of fun things in this edition, including PDF previews of documents, a document conversion API so you can write your own code to convert documents, split/merge PDFs and more. New Flex/AIR based FusionDox client (aka the FusionDox Authoring System) for live editing MS Office/OpenOffice documents directly through your browser, and it works for Macintosh and Linux computers too!

There is some preliminary info online, with more to come.

http://www.fusiondox.com/

Converting a query to Array ... and Back again, for Flex sake...

There have been a few blog posts on how to convert a query into an array of structures. Here is Ben Nadel's, Here is Carlos Gallupa's, and there are more out there.

Now that you are a master at converting query to array-of-struct, how about converting it back to a query? No, not just for kicks, but perhaps for that crazy array you built, that you now want to pull via CFC into a Flex app ? (this is the reason I bothered, b/c u know that CF queries get auto-translated into ArrayCollections in Flex, don't you ??)

» Click Here to read the rest of this post

More Entries