summaryrefslogtreecommitdiff
path: root/TAO/CIAO/docs/tutorials/CoSMIC/04.html
blob: 27a5344af23834d0367b3a02aa1dcbc1e83d30af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
  <title>Building a Stock Quoter with TAO - A Tutorial</title>
<!-- $Id$ -->
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"
 link="#000fff" vlink="#ff0f0f">
<h3>Running the application<br></h3>

Now that we have all the components and driver programs successfully built, along with the flattened_deploymentplan generated by PICML, we will be able to run our application<BR><BR>

From different command prompts in <code>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/descriptors/</code>
directory:<ul>
  <li>Start NodeManagers (NodeDameon) by running <CODE>runNodeDaemon.pl</CODE> </li>
  <li>Start the execution manager
<CODE>%CIAO_ROOT%/DAnCE/ExecutionManager/Execution_Manager -o ior -i Stock.dat</CODE>&nbsp;
</ul>
<p>The <CODE>Stock.dat</CODE> 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 &quot;destination&quot; and the corresponding
IOR for the CIAO_Daemon.</p>
<ul type="square">
  <li><em>NOTE</em>: As one can see, we use the &quot;Stock.dat&quot; 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. </li>
</ul>
<ul>
  <li> Start the plan_launcher by running
<CODE>%CIAO_ROOT%/DAnCE/Plan_Launcher/Plan_Launcher -p
flattened_deploymentplan.cdp -k file://ior</CODE></li>
  <li>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<br>
  </li>
</ul>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<CODE>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Distributor/Distributor.exe -o </CODE><br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<CODE>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/Broker.exe -s MSFT</CODE><br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<CODE>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/Broker.exe -s IBM</CODE><br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<CODE>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/Broker.exe -u MSFT</CODE><br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<CODE>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Distributor/Distributor.exe -f </CODE><br>
<br>



</body>
</html>