The Adobe® Flex® module for Apache and IIS compiler provides web-tier compilation of MXML files on Apache and IIS web servers. This lets you rapidly compile, test, and deploy an application: Instead of compiling your MXML file into a SWF file and then deploying it and its wrapper files on a web server, you can just refresh the MXML file in your browser.
You do not need a Java 2 Enterprise Edition (J2EE) server to use the web-tier compiler. The Flex module for Apache and IIS works with just the web server and a Java Runtime Environment (JRE).
This document refers to the Flex module for Apache and IIS as the web-tier compiler or the compiler module.
For web tier compilation, you can also use the Adobe Flex compiler module for J2EE application servers. The Flex compiler module for J2EE application servers is a ZIP file that you can deploy to most J2EE application servers that support servlets. The Flex compiler module for J2EE application servers also provides a JSP tag library that lets you write Flex applications in JSPs. It is available as a download on the Adobe web site.
This process contains the following steps:
When the web server receives a request for a file with the extension *.mxm.swf instead of *.mxml, the compiler module returns a SWF file only, and not the wrapper around it. In general, you should not request a SWF file directly, because it may run differently than if it were embedded in a wrapper.
The web-tier compiler has the following advantages over using the command-line compiler:
The web-tier compiler has the following disadvantages compared to using the command-line compiler:
<headless-server>true</headless-server>