blob: dce2fb1364c64337154c2a4903188971bdb6e127 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
"HTML Tidy for Mac OS X (vers 1st December 2004), see www.w3.org" />
<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> </li>
</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 "destination" and the
corresponding IOR for the CIAO_Daemon.</p>
<ul type="square">
<li><em>NOTE</em>: As one can see, we use the "Stock.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.</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>
<code>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Distributor/Distributor.exe
-o</code><br />
<br />
<code>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/Broker.exe
-s MSFT</code><br />
<br />
<code>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/Broker.exe
-s IBM</code><br />
<br />
<code>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/Broker.exe
-u MSFT</code><br />
<br />
<code>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Distributor/Distributor.exe
-f</code><br />
<br />
</body>
</html>
|