CFEclipse 1.3 Beta Integrated with FlexBuilder

Dean Harmon, the Adobe engineer responsible for the CF ReportBuilder and FlexBuilder2 ColdFusion Application/Extension Wizards, has tweaked CFEclipse 1.3 to make it compatible with Eclipse 3.1.

This is a short-term godsend as far as I am concerned. Many of us updated our Eclipse builds to 3.2 to take advantage of some of the feature enhancements of CFEclipse 1.3, which would only run under 3.2. Because FlexBuilder2 was built using the Eclipse 3.1 platform, you were left with two options; either install and use the supported standalone version without CFEclipse 1.3, or install the FB2 plugin into the Eclipse 3.2 build and use it in an unsupported manner. Since FlexBuilder2 was just released a couple months ago, I opted for the former. This resulted in having to work in two different environments.

Dean's integration work now means you can access CFEclipse functionality while using the standalone FlexBuilder. This is a big deal if you are a ColdFusion developer trying to work with CFCs and remoting.

The updated CFEclipse build can be found here.

Total Training's Adobe Flex 2 Rich Internet Applications

This has been mentioned on several blogs already, but I will add my endorsement anyway. If you're like me and don't have a week or the money to spend on a dedicated Flex training class, there is another way to get visual hands-on Flex training.

Ben Forta mentioned this product on his blog a couple months ago, and I bought it ten minutes later. I am just getting around to watching it, and it is worth every penny of the $150 price tag.

Total Training for Adobe Flex 2 Rich Internet Applications is a 8 hour DVD training video hosted by Adobe trainer/evangelist James Talbot, that is really the best video training I have ever experienced. Talbot is very engaging as walks you through multiple lessons that deal with all aspects of Flex development best practices using Adobe's FlexBuilder 2. It's got a nice bookmark feature that will allow you to return to mulitple areas for further review.

A word of caution for ColdFusion developers: while there is plenty of content regarding data access using XML and web services, the examples are platform agnostic. You won't find examples for hooking up to a CF server and pulling data from your MS SQL/MySQL database, for instance.

If you don't have FlexBuilder yet, you can easily download a 30-day evaluation copy.

Highly recommended.

IIS and Flex CF Remoting Project Errors

Another gem I gleaned off the FlexCoders mailing list a couple months ago. There is a known bug in this version of FlexBuilder when creating Flex projects which use ColdFusion remoting and IIS as the web server. Apparently the new project wizard expects you to use the built-in CF web server on port 8500. If you are using IIS locally on port 80, you will get an error when you run your application. This is because the CF Flex remoting services compiler arguments are omitted when the project is built.

This is slated to be fixed in a future update, but in the meantime the workaround is to right-click on the project and select Properties/Flex Compiler. In the 'Additional compiler arguments:' field you need to add the following text to the end of the line (this assumes you have a default standalone installation of CFMX7):

-services "C:\CFusionMX7\wwwroot\WEB-INF\flex\services-config.xml"

So, assuming your locale is English US, the full line should read:

-locale en_US -services "C:\CFusionMX7\wwwroot\WEB-INF\flex\services-config.xml"

The added arguments are supposedly the only difference between a basic project and a CF remoting project, so to avoid confusion it is probably better to just create a basic Flex project and add the additional CF compiler arguments afterward.

Curing FlexBuilder Memory Bloat

I picked this tip up on the FlexCoders mailing list, which was originally posted on Ted Patick's blog and thought I would share it. It's no secret that if you are working with several open projects at a time in Eclipse (and therefore FlexBuilder), that memory consumption can get out of control, with Eclipse gobbling upwards of a half a gig of RAM or more in some cases. Often times this results in the developer having to kill FlexBuilder to recover the memory and be able to continue work. Some developers have been partitioning separate workspaces for each project, which solves the memory issue, but makes it harder to work with related projects. Fortunately there is an Eclipse plugin called the Kyrsoft Memory Monitor, which can do your garbage collection for you and recover unused memory. The plugin is highly configurable and will allow you to activate automatic GC when RAM consumption reaches a certain threshold. It will also optionally place a small visual usage meter in the status bar. Memory Monitor Console

You can install the plugin from http://www.kyrsoft.com/updates/

BlogCFC was created by Raymond Camden. This blog is running version 5.5.001.