Curiosity got the better of us at work this past week, we decided it was a good idea to test BlazeDs with ColdFusion and verify if we can get the Flex Messaging Service running and connected with our flex application.
On my laptop I got ColdFusion8 running with BlazeDS v 3.2 thanks to a post by Aaron West this was easy figuring out how to get access to the FMS Gateway within flex was shall I say a *****.
How to install BlazeDS on ColdFusion 8
Please watch the video on how to install Blaze DS on ColdFusion (running LCDS ES)
Please verify you have Adobe ColdFusion 8+ installed.
Please verify you My SQL 5+ installed.
Please verify you have the ColdSpring Framework installed.
FEATURES
Request Creation
Approvals Routing
Email Messages (disabled)
Notes
Multiple Attachments
SOA Framework
INSTALL INSTRUCTIONS
DATABASE
Log into My SQL as root and execute the following scripts
worf_db\CREATE_TABLES_01.sql (this creates the “WORF” schema and tables the application needs)
worf_db\insert_worf_base_data_02.sql (this inserts the base data that the application requires to run)
You may want to create a database user and grant all access to the WORF screma, you may also use root as the user.
Access the ColdFusion Administrator and create a “WORF” datasource pointing to the work schema on the my sql server
WEB FILES
Copy the contents of the worf directory withing the archive into [WEB-ROOT]\webapps\worf
You can then access the application using http://LOCALHOST:[port]/webapps/worf/index.cfm
FLEX FILES
The files withing worfflex are a standard Flex Builder 3 project files.
DO NOT FORGET THE “-keep-as3-metadata+=Autowire,Mediate” compiler argument.
This application requires some FlashVars to be passed to it, hence you direct flex builder to call a custom ColdFusion template instead of the standard html template that is generated by flex.
You need to request the http://LOCALHOST:[port]/webapps/worf/worf.cfm when debugging your application. Instructions here
I’m new to Flex development about 4-5 months, started my first project using PureMVC. For reasons unknown to me I decided to re-write a part of the application using Swiz Framework.
I have to say I’m pretty impressed, I wish there was an Application template to help me get started or a defined way of writing code. After I tweaked my RemoteService.as file I got it working with Swiz’s CommandChain and my SOA back-end infrastructure remains unchanged.
The inversion of control functionality with the help of Dynamic Mediators & Swiz Controllers reduce code like I cannot believe.
Please give me a few weeks and I will share a Sample Application for the group to download and use with Swiz and ColdFusion.
I will also publish a wish list of Flex and Swiz, I wish there was a way to define meta data information in static const variables of XML files.