Ticket #300 (new enhancement)
Server-side Flex configuration
| Reported by: | thijs | Owned by: | nick |
|---|---|---|---|
| Priority: | major | Milestone: | 0.5 |
| Component: | Remoting | Version: | 0.3.1 |
| Keywords: | Cc: |
Description (last modified by thijs) (diff)
Flex applications can access exposed classes as "destinations". Destinations can be configured server-side, traditionally through one of 3 XML config files:
- services-config.xml -- configures Flex endpoint (RPC/Messaging)
- remoting-config.xml -- configures Flex RPC destinations
- messaging-config.xml -- configures Flex messaging destinations
You can use access these destinations with a Flex RemoteObject like:
remoteObject = new RemoteObject(); remoteObject.destination = "InfoServiceDestination"; remoteObject.getComputerInfo.addEventListener("result", onResult); remoteObject.addEventListener("fault", onFault);
The InfoServiceDestination in this example would be configured in both the client-side and server-side remoting-config.xml files:
<destination id="InfoServiceDestination"> <properties> <source>InfoService</source> </properties> </destination>
Would be nice to have a similar mechanism for PyAMF so newbies coming from a Java/PHP background can quickly get started.
Change History
Note: See
TracTickets for help on using
tickets.
