summaryrefslogtreecommitdiff
path: root/modules/CIAO/DAnCE/StaticConfigurator/README
blob: e42c1099cfd0a8ab91bf990df3fc7b65ae5c8c04 (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
Please see $CIAO_ROOT/docs/static_dance.html for details.

To run the static version of Hello example, do the following,

1. Build ACE+TAO+CIAO statically
2. Build $CIAO_ROOT/examples/Hello
3. Generate the static function entrypoints (plan.h)
   > cd $CIAO_ROOT/examples/Hello/descriptors
   > $CIAO_ROOT/DAnCE/StaticConfigurator/StaticDAnCEParser -p flattened_deploymentplan_without_ns.cdp
   > cp plan.h $CIAO_ROOT/DAnCE/StaticConfigurator/
4. Build the static NodeManager for Hello example
   > cd $CIAO_ROOT/DAnCE/StaticConfigurator
   > cp StaticDAnCEApp.cpp.tmpl StaticDAnCEApp.cpp
   > cp StaticDAnCEApp.mpc.tmpl StaticDAnCEApp.mpc
   > $ACE_ROOT/bin/mwc.pl
   > make
5. Run the static node managers. Note that the ORBEndpoint values should
   correspond to the ones in  $CIAO_ROOT/examples/Hello/descriptors/TestNodeManagerMap.dat
   > cd $CIAO_ROOT/DAnCE/StaticConfigurator
   > ./StaticDAnCEApp -ORBEndpoint iiop://localhost:60001 &
   > ./StaticDAnCEApp -ORBEndpoint iiop://localhost:60002 &
6. Do the deployment. This is just the same as the non-static version of DAnCE
   except that we have the NodeManagers already running and need not spawn node
   managers. To accomplish this, change
   $CIAO_ROOT/examples/Hello/descriptors/run_test_without_ns.pl
   to *not* run the node manager daemons and do the following.
   > cd $CIAO_ROOT/examples/Hello/descriptors
   > ./run_test_without_ns.pl