### Step 6: System Deployment

###

Now that we have all the components and driver programs successfully built, along with the Deploymentplan generated by PICML, we will be able to run our application
From different command prompts in `%CIAO_ROOT%/docs/tutorials/Quoter/Simple/descriptors` directory:

- Start NodeManagers (NodeDameon) by running:

%CIAO_ROOT%/bin/NodeManager -ORBListenendpoints iiop://localhost:30000 -s %CIAO_ROOT%/bin/NodeApplication -d 1000

%CIAO_ROOT%/bin/NodeManager -ORBListenendpoints iiop://localhost:40000 -s %CIAO_ROOT%/bin/NodeApplication -d 1000

- Start the execution manager:

`%CIAO_ROOT%/bin/Execution_Manager -o ior -i NodeMap.dat`

The `NodeMap.dat` file describes the deployment daemons CIAO's Execution_Manager will contact to instantiate ComponentServer's, home's, and component instances. Each line specify the name of a installation "destination" and the corresponding IOR for the CIAO_Daemon.

- NOTE: As one can see, we use the "NodeMap.dat" file to instruct the Execution_Manager how to find the endpoint of each individual NodeManager (i.e., Node Daemon) where component(s) will be deployed, so this is non-standard. We plan to use Naming Service to do this in the future.

- Start the plan_launcher by running `%CIAO_ROOT%/bin/plan_launcher -p Plan.cdp -k file://ior`
- By now the components should be successfully deployed. You may run the driver program to start the application. e.g. you can try the following :
  - Instruct the StockDistributor component to start publishing stock quotes:

`%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Distributor/StockDistributorDriver.exe -o`

- Instruct the StockBroker to subscirbe to MSFT stock publications:

`%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/StockBrokerDriver.exe -s MSFT`

- `Instruct the StockBroker to subscirbe to IBM stock publications:`

`%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/StockBrokerDriver.exe -s IBM`

- `` Instruct the StockBroker to unsubscirbe to MSFT stock publications:

`%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/StockBrokerDriver.exe -u MSFT`

- Instruct the StockDistributor component to stop publishing stock quotes:

`%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Distributor/StockDistributorDriver.exe –f```

````

- NOTE: Windows uses %VARIABLE% to fetch the values of environment variables. Linux/Unix uses $VARIABLE to fetch the values of environment variables. As such, if you're running this tutorial on Linux/Unix operating system, change the above commands to use $VARIABLE instead of %VARIABLE% when you run the programs.

Previous

$Id: 04.html 79944 2007-11-06 20:33:04Z sowayaa $