### 8.6 Running a DSA application

By default `po_gnatdist` will use the Ada starter. So if you have not specified `pragma Starter (None);` in the `po_gnatdist` configuration file, you should have a starter in your build directory, named after the main procedure defined in the configuration file. In this case you just have to run this program.

If you don't want to use the Starter and have specified `pragma Starter (None);` in your configuration file, then you should have, in your Partition'Directory, one binary for each of your partitions. You'll have to start each of these programs manually.

In both cases you must specify a name server for your application. You can use for example the one included in PolyORB: `po_cos_naming`. When running this name server it will output its IOR URI named `POLYORB_CORBA_NAME_SERVICE`.

Just ensure that you set the global environment variable `POLYORB_DSA_NAME_SERVICE` to an IOR URI referencing the running name server. When using the `po_cos_naming` name server just set `POLYORB_DSA_NAME_SERVICE` environment variable to the first value output for `POLYORB_DSA_NAME_SERVICE` before launching each DSA partition.

Here is a small trace output that demonstrates the setup

         polyorb/examples/dsa/echo% ../../../tools/po_cos_naming/po_cos_naming&
         polyorb/examples/dsa/echo% POLYORB_CORBA_NAME_SERVICE=''....''

         polyorb/examples/dsa/echo% export POLYORB_DSA_NAME_SERVICE=''...''
         polyorb/examples/dsa/echo% ./client
         The client has started!
         Thus spake my server upon me:Hi!