Nirvana Flex : Server Setup
Flex requires that cross domain files be used for all connections below is some basic ways of setting up Nirvana to server these files.
NHP connection setup
Following these steps will set up a realm server with a demo flex app connecting via NHP
- Create a Test Channel with a channel name of flex.
- Set the ACL Permissions on your Channel so that you can publish and consume from it.
- Set up a HTTP Interface
- Set up a File Plugin on this interface to serve the flex application.
- Add a cross domain policy to the root file directory of the interface serving the swf (only required if different from the interface the swf connects to).
- Implement a basic Flex client
NSP connection setup
Following these steps will set up a realm server with a demo flex app connecting via NSP
- Create a Test Channel with a channel name of flex.
- Set the ACL Permissions on your Channel so that you can publish and consume from it.
- Set up a socket Interface on port 843 and enable the socket policy server on it
- Add a socket cross domain policy to the data directories htdocs
- Implement a basic Flex client
