Macromedia flex 2-migrating applications to flex 2 Manual De Usuario
Migrating RemoteObject components
137
Channels are defined in the
channels
section of the services-config.xml file. There are several
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.
information about channels, see Chapter 43, “Configuring Data Services,” in the Flex 2
Developer’s Guide.
Logging
The
<web-service-proxy-debug>
,
<http-service-proxy-debug>
, and
<remote-
objects-debug>
tags in flex-config.xml are no longer used in Flex 2. These were used for
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.
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-
service>
section of the services-config.xml file. In Flex 1.5, you configured RemoteObjects
in the
<remote-objects>
section of the flex-config.xml file.
To bind service results in Flex 2, you use the
lastResult
property of the service as the
binding source, as the following example shows:
<mx:Text text="{tempService.getTemp.lastResult}"/>
In Flex 1.5, the
result
property was the binding source.
Unnamed RemoteObject
You can no longer use unnamed RemoteObjects. You must configure them in the
<remoting-service>
section in the services-config.xml configuration file or a file that it
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.
config.xml file, which is included by reference in the services-config.xml file.
In Flex 1.5, you could specify
source="object_name"
and the object’s statefulness on the
RemoteObject tag. In Flex 2, you configure the object name and its statefulness in the
configuration file.
configuration file.