Nirvana TradeSpace Demos
This is a simple guide to setting up the Nirvana TradeSpace demos on your own local Nirvana realm.
Installation
Download the TradeSpace Client Demos zip archive, and unzip it into your Nirvana Install directory (for example, C:\Nirvana 5.0.6383).
Note that this demo package contains a setup batch file which, by default, will attempt to create and configure a Nirvana interface on port 80. If you do not wish to use port 80, or already have another process using port 80, then please follow the steps in "Environment Configuration" below to change the interface port.
Environment Configuration
The XML file demo/cfg/demo.xml file defines the Nirvana channels, interfaces and plugins required to run this demo. You will need to edit this file to suit your environment:
-
BasePath
The demo/cfg/demo.xml file contains a property called BasePath, which refers to the path of the web content for the demos.
Currently, this contains C://Nirvana 5.0.6383/demo/www/.
Modify this path to reflect your own Nirvana install path.
-
Interface Port Number
If you wish to run the Nirvana interface on a different port to 80, then you will need to modify the property called port, also in the demo/cfg/demo.xml file.
Interface, Plugin and Channel Setup
To continue, please ensure you are running your Nirvana realm.
Open up a Java Examples Command Prompt (from your Nirvana installation's Client submenu in your Windows Start Menu). Then, enter the following commands:
cd ..\..\..\demo\bin setup.bat startall.bat
The demonstration news and rates channels will now be automatically created and populated with sample events.
Running the demos
In order to run the demos, open a browser, and open the following URL: http://your_host_name/ where your_host_name is the fully qualified name of the machine where your Nirvana realm and demos are running.
If you have changed the port on which the Nirvana interface is running, please open the URL http://your_host_name:your_port/ where your_port is the port you chose when editing the file demo/cfg/demo.xml.
The page you see in the browser contains links to all of the local TradeSpace demos, including Javascript, Flex, Silverlight and Java Web Start.
Demos
Each TradeSpace demonstration implementation exists under the demo/www/ directory, within its own directory:
- Silverlight - demo/www/silverlight/tradespace
- Java - demo/www/java/tradespace
- Flex - demo/www/flex/tradespace
- Javascript - demo/www/javascript/tradespace
Source Code
The source code for the Java, Silverlight, and Flex demos can be found in demo/src.
The source code for the Javscript demo is in demo/www/javascript/tradespace, as the source (js and html files) is interpreted directly by your browser.
