
175
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
XML configuration files reference
Last updated 11/28/2012
Example
<Scope>vhost</Scope>
See also
Distribute
,
LifeTime
,
MaxFailures
,
RecoveryTime
ScriptEngine
Availability
Flash Media Server 4
Replaces the
JSEngine
element.
Description
Container element.
The elements nested within this container configure the server-side script engine.
Inside the
ScriptEngine
element, you can define properties for the server-side Application object. Defining
properties in the default Application.xml file creates properties available for all applications on a virtual host. Defining
properties in an Application.xml file in an application folder creates properties available for that application only.
To define a property, create an XML tag. The property name corresponds to the tag’s name, and the property value
corresponds to the tag’s contents.
Example
The following XML fragment defines the properties
user_name
and
dept_name
, with the values
jdoe
and
engineering
, respectively:
<ScriptEngine>
<config>
<user_name>jdoe</user_name>
<dept_name>engineering</dept_name>
</config>
</ScriptEngine>
To access the property in server-side code, use the syntax in either of these examples:
application.config.prop_name
application.config["prop_name"]
Note:
The properties you define are accessible from
application.config.property
, not from
application.property
.
Value
Description
adaptor
All application instances in an adaptor run together in a process.
vhost
All application instances in a virtual host run together in a process. This is the default value.
app
All instances of a single application run together in a process.
inst
Each application instance runs in its own process. If you choose this value, you must also set the
Distribute
numprocs
attribute to a value greater than 1.