Flex application files, such as .as ActionScript files and Flex .mxml files,
do not have to live under the /WEB-INF directory, however, the
flex-config.xml file must reside at /WEB-INF/flex/flex-config.xml.
This means that if you have many "applications" in your web app, they must
all share the one Flex configuration file.
As to how you place .as/.mxml files on your server, I guess that is up to
what the underlying JRun server, and I guess, underlying web server (be it
JRun's internal web server or IIS etc) supports. I believe you should be
able to use normal virtual directories, but I don't think you can use any CF
virtual mappings (or whatever that special CF-specific mapping system is
called :)
The end goal is for you to get requests to files with .mxml extensions to be
picked up by the Flex MxmlServlet. This means that your web server must know
how to pass on .mxml requests to the ColdFusion J2EE Web Application
container, which will then invoke the flex mxml servlet to process your
request and return a SWF file to the client. If you can already see .mxml
files being correctly compiled and returned as SWFs then you're all set to
start experimenting with virtual dirs.
-Original Message-
From: chrs_hearn [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 03, 2005 12:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Samples Error: FormatSourceService
ah...this is were i get confused since i'm coming from the CF side
of things. I have a standard CFMX installation...what must i do or
where do I install flex apps? I saw the wwwroot/web-inf dir and
thought this is where I must put the files. Am i wrong for
installing it this way or is there a different approach I should
follow? I assume now everything must go under my current CF
installation wwwroot/web-inf dir and I do not have the ability to
place them anywhere on my server.
Is there an easy way to install seperate J2EE server instances now
that I have already done it the standard way or am I hosed?
--- In flexcoders@yahoogroups.com, Peter Farland <[EMAIL PROTECTED]>
wrote:
> A colleague of mine just pointed out that you may be confusing a
J2EE web
> application with the concept of a coldfusion application.
>
> If you only have one ColdFusion standalone installation, then you
only have
> one J2EE web application. This means you only have one place to
specify a
> Flex configuration.
>
> Flex runs as a J2EE web application, it doesn't have a
configuration file on
> a directory by directory basis.
>
>
>
>
> -Original Message-
> From: chrs_hearn [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 03, 2005 11:54 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Samples Error: FormatSourceService
>
>
>
>
> Just to clarify...does flex or the 'web application' run from
> the /web-inf/flex/flex-config.xml in the directory where my app is
> (in my case the e: drive) or the c: drive /web-inf/ under my
> coldfusion installation?
>
> My sample files including where the formatsource.jsp file is under
> my samples dir on the e: drive where i keep all my sites. Flex
seems
> to be running from the c:\cfusionmx\wwwroot\web-inf dirs.
Yahoo! Groups Links