Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual page 137

Migrating applications to flex 2
Table of Contents

Advertisement

Channels are defined in the
section of the services-config.xml file. There are several
channels
predefined channels that you can assign to your RPC service destinations. For more
information about channels, see Chapter 43, "Configuring Data Services," in the Flex 2
Developer's Guide.
Logging
The
,
, and
<web-service-proxy-debug>
<http-service-proxy-debug>
<remote-
tags in flex-config.xml are no longer used in Flex 2. These were used for
objects-debug>
both client-side and server-side debugging. There is no complete replacement for these. There
is a new client-side logging API; for more information, see Chapter 11, "Logging," in Building
and Deploying Flex 2 Applications. There is also server-side logging that you can set in services-
config.xml to log Remoting Service and Proxy Service traffic; for more information, see
Chapter 43, "Configuring Data Services,"in the Flex 2 Developer's Guide.
Migrating RemoteObject components
The server-side configuration for RemoteObject components is now in the
<remoting-
section of the services-config.xml file. In Flex 1.5, you configured RemoteObjects
service>
in the
section of the flex-config.xml file.
<remote-objects>
To bind service results in Flex 2, you use the
property of the service as the
lastResult
binding source, as the following example shows:
<mx:Text text="{tempService.getTemp.lastResult}"/>
In Flex 1.5, the
property was the binding source.
result
Unnamed RemoteObject
You can no longer use unnamed RemoteObjects. You must configure them in the
section in the services-config.xml configuration file or a file that it
<remoting-service>
includes by reference. Adobe generally defines the Remoting Service in the remoting-
config.xml file, which is included by reference in the services-config.xml file.
In Flex 1.5, you could specify
and the object's statefulness on the
source="object_name"
RemoteObject tag. In Flex 2, you configure the object name and its statefulness in the
configuration file.
Migrating RemoteObject components
137

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents