A Data Management Service destination is the endpoint that you send data to and receive data from and provides data distribution and synchronization. You connect to a Data Management Service destination using the DataService component and the corresponding ActionScript API.
Sample:
<service id="data-service" class="flex.data.DataService" messageTypes="flex.data.messages.DataMessage"> <adapters> <adapter id="dotnet-dao" class="FluorineFx.DotNetAdapter" default="true"/> </adapters> <default-channels> <channel ref="my-rtmp"/> </default-channels> <destination id="crm.company"> <adapter ref="dotnet-dao"/> <properties> <source>samples.crm.CompanyAssembler<source/> <scope>application<scope/> <metadata> <identity property="companyId"/> </metadata> <network> <session-timeout>20</session-timeout> <paging enabled="true" pageSize="10"/> </network> </properties> </destination> </service> ... <channels> <channel-definition id="my-rtmp" class="mx.messaging.channels.RTMPChannel"> <endpoint uri="rtmp://{server.name}:1951" class="flex.messaging.endpoints.RTMPEndpoint"/> </channel-definition> </channels> ...
Use a security constraint to authenticate and authorize users before allowing them to access a destination (custom authentication supported only).
Security constraints can be declared inline in the destination definition or globally and referenced by their id in a destination definition.
The current version of FluorineFx supports only the Realtime Message Protocol (RTMP) channel for Data Management Services.
The Data adapter in FluorineFx is provided by the FluorineFx.DotNetAdapter class.
<adapter id="dotnet" class="FluorineFx.DotNetAdapter" default="true"/>
| Property element | Description |
|---|---|
source |
Fully qualified type name of the Data Assembler |
scope |
Valid values are request, application, and session. The default value is request. Indicates whether the object is available in the request scope, the application scope, or the session scope. |
cache-items |
Not supported, always set to true |
auto-sync-enabled |
Not supported, always set to true |
| Property element | Description |
|---|---|
session-timeout |
Idle time in minutes before a subscriber is unsubscribed (Missing element or the value 0 means do not unsubscribe automatically) |
paging |
Optional element specifying data paging settings. The enabled attribute (true/false) indicates whether data paging is enabled for the destination, the pageSize attribute indicates the number of records in a page. |
| Property element | Description |
|---|---|
identity |
Specifies data properties that provide object identity. The property attribute identifies the property name. |
| Property element | Description |
|---|---|
allow-subtopics |
Specifies whether subtopics are allowed for a destination (true/false) |
subtopic-separator |
Not supported. In FluorineFx the subtopic separator is always "." (period) |