Thursday, March 18, 2010    
Home My Books Blog ColdFusion About Me Back    

Calendar
<< Jan 2004 >>
S M T W T F S
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
             

Search

Categories
 • Acrobat (3) [RSS]
 • Adobe (89) [RSS]
 • AdobeMAX06 (45) [RSS]
 • AdobeMAX07 (59) [RSS]
 • AdobeMAX08 (66) [RSS]
 • AdobeMAX09 (39) [RSS]
 • AdobeMAX10 (1) [RSS]
 • AIR (219) [RSS]
 • Appearances (191) [RSS]
 • Books (72) [RSS]
 • CFEclipse (15) [RSS]
 • ColdFusion (1380) [RSS]
 • Data Services (34) [RSS]
 • Fish Tank (5) [RSS]
 • Flash (197) [RSS]
 • Flex (497) [RSS]
 • Home Automation (5) [RSS]
 • Jobs (116) [RSS]
 • JRun (14) [RSS]
 • Labs (43) [RSS]
 • LiveCycle (34) [RSS]
 • MAX (232) [RSS]
 • Mobile (120) [RSS]
 • Regular Expressions (17) [RSS]
 • RIA (21) [RSS]
 • SQL (40) [RSS]
 • Stuff (536) [RSS]
 • Tips (CF Studio) (80) [RSS]
 • Tips (CF) (795) [RSS]
 • Tips (Dreamweaver) (91) [RSS]
 • Tips (Flex Builder) (2) [RSS]
 • Using CF (162) [RSS]

Other BLOGs
 • Charlie Arehart
 • Lee Brimelow
 • Ray Camden
 • Christophe Coenraets
 • Sean Corfield
 • Mihai Corlan
 • Cornel Creanga
 • Mark Doherty
 • John Dowdell
 • Danny Dura
 • Enrique Duvos
 • Steven Erat
 • Kevin Hoyt
 • Serge Jespers
 • Adam Lehman
 • Duane Nickull
 • Miti Pricope
 • Andrew Shorten
 • Ryan Stewart
 • James Ward
 • Greg Wilson
 • Full As A Goog

RSS Feeds
 • Feed
 • Subscribe

Join my mailing list and find out about new books and other topics of interest.

Thoughts, ideas, tips, musings, and pontifications (not necessarily in that order) by Ben Forta ...
NOTE: This is my personal blog, and the opinions and statements voiced here are my own.

Viewing By Day : January 16, 2004 / Main
January 16, 2004

Installing Flex with ColdFusion

Earlier this week I blogged an example of Flex embedded in ColdFusion. This is a powerful and intuitive way to leverage Flex, but the installation and setup do require some know-how and manual tweaking. So, having gone through the process, and knowing that many of you will want to do the same, I thought I should share the process (just the high-level overview for now).

1: ColdFusion is a Java application, so is Flex (for now). Both ColdFusion and Flex are installed on top of J2EE servers. When ColdFusion MX Enterprise is installed there are three installation types presented as options, the 2nd installs JRun and a ColdFusion instance deployed on top of it, and the 3rd creates a ColdFusion archive (EAR or WAR) for deployment on top of an existing J2EE server. To use Flex with ColdFusion this type of install is required, standalone install (and thus ColdFusion Standard) will not support the deployment of Flex. So, first of all, ColdFusion must be deployed and running on top of a J2EE server.

2: Flex comes with an installer which actually does not really install Flex at all. What it does do is create WAR files for deployment on top of a J2EE server (like JRun). The installer created a folder and deposits several files in it, one of those is named flex.war and it is that file that contains Flex itself and needs to be deployed on the J2EE server. The exact steps to deploy flex.war vary based on the J2EE server being used. There are J2EE management tools that may be used to deploy WAR files, or you may simply expand the war file (using the jar utility) so that it may be detected by the J2EE server.

3: In order to embed Flex MXML (via the Flex JSP Tag Library) in your CFML code, Flex must be deployed in the same server and context as ColdFusion itself. So, if you deployed ColdFusion MX into a context named "cf", Flex will need to deployed into "cf" as well. The simplest way to do this is to manually expand flex.war into the same folder in which ColdFusion itself was expanded.

4: In the application's WEB-INF folder there is a file named web.xml, this file contains application information needed by the J2EE server so as to be able to deploy the application in the folder. ColdFusion installs its own web.xml, and Flex comes with one too. These contents of these two files must be merged (as only one web.xml may exist).

5: Then simply restart the server, and both ColdFusion and Flex will be deployed. You can then create .cfm files, .mxml files, and also embed the Flex JSP Tag Libraries within your CFML code.


NASA JPL Powered by ColdFusion

NASA JPL (Jet Propulsion Laboratory at the California Institute of Technology in Pasadena) is one of the most popular Web destinations right now. The next time you visit http://www.jpl.nasa.gov/ pay close attention to the URLs, lots of them have a .cfm extension. JPL has been using ColdFusion for a long time, ever since CGI and DBML days. This site appears to be running ColdFusion 5 on Linux. It is not an MX site (yet), but still, it is another great example of ColdFusion powering high profile high volume sites. Thanks to Alex Hubner for pointing this one out to me.

  © Copyright 1997-2009 Ben Forta, All Rights Reserved