User Guide

Table Of Contents
Configuring the Flash Remoting Gateway 811
security You can edit security settings in child tags of the <security> tag.
In the
<login-command> tag, you can set the flashgateway.security.LoginCommand
implementation for performing local authentication on a specific application server.
By default, the <login-command> tag is set to the following values:
<login-command>
<class>flashgateway.security.JRunLoginCommand</class>
<server-match>JRun</server-match>
</login-command>
In the <show-stacktraces> tag, you can enable stack traces. Stack traces are useful
for debugging and product support, but they should not be sent to the client in
production mode because they can expose internal information about the system.
The following
<show-stacktraces> tag is the default tag:
<show-stacktraces>false</show-stacktraces>
The <whitelist> tag specifies which remote sources can be accessed through the
gateway. The * character can be used as a wildcard to imply ALL matches. The
following
<whitelist> tag shows the default value:
<whitelist>
<source>*</source>
</whitelist>
When you deploy your application, ensure that you change this setting so that it
specifies only the services that the gateway needs to access to run your application.
Remember that for ColdFusion based services, directories are treated as "packages"
and thus you specify a period delimited path from the web root to the directory or file
containing the services you will allow access to. An asterisk wildcard allows access to
all services in a particular directory. You can have multiple <source> tags.
The following whitelist allows access to the webroot/cfdocs/exampleapps/ directory,
which includes the flash1 through flash5 Flash Remoting example directories. It also
allows access to a webroot/BigApp/remoting directory and its children.
<whitelist>
<source>cfdocs.exampleapps.*</source>
<source>BigApp.remoting.*</source>
</whitelist>
logger level You can set the level of logging between None, Error, Info, Warning, and Debug. The
following tag is the default logger level tag:
<logger level="Error">coldfusion.flash.ColdFusionLogger</logger>
redirect URL In the <redirect-url> tag, you can specify a URL to receive HTTP requests that are
not sent with AMF data. By default, the
<redirect-url> tag is set to {context.root},
which is the context root of the web application:
<redirect-url>{context.root}</redirect-url>
case
sensitivity
The <lowercase-keys> tag specifies how the gateway handles case sensitivity.
ActionScript 1.0 and ColdFusion use case insensitive data structures to store
associative arrays, objects and structs. The Java representation of these data types
requires a case-insensitive Map, which the gateway achieves by forcing all keys to
lowercase.
ActionScript 2.0 is case sensitive and requires a <lowercase-keys> tag value of
false.
The following
<lowercase-keys> tag is the default tag:
<lowercase-keys>true</lowercase-keys>
Feature Description