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. Remember to add this tutorials library path to your system path in order to run the executable without
problems (see page 1 of this tutorial).
From different command prompts in %CIAO_ROOT%/docs/tutorials/Quoter/Simple/descriptors
directory:
%DANCE_ROOT%/bin/dance_node_manager -ORBListenendpoints iiop://localhost:30000 -s %CIAO_ROOT%/bin/ciao_componentserver -n Distributor=StockDistributor.ior
%DANCE_ROOT%/bin/dance_node_manager -ORBListenendpoints iiop://localhost:40000 -s %CIAO_ROOT%/bin/ciao_componentserver -n Broker=StockBroker.ior
%DANCE_ROOT%/bin/dance_execution_manager -eEM.ior --node-map 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.
%DANCE_ROOT%/bin/dance_plan_launcher -x Plan.cdp -k file://EM.ior
%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Distributor/StockDistributorDriver.exe -o
%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/StockBrokerDriver.exe
-s MSFT
Instruct the StockBroker to subscribe
to IBM stock publications:
%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/StockBrokerDriver.exe -s IBM
Instruct the StockBroker to unsubscribe to MSFT stock
publications:
%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/StockBrokerDriver.exe
-u MSFT
%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Distributor/StockDistributorDriver.exe
–f
$Id$