## Step-By-Step instructions about how to use Repository Manager with DAnCE

This file explains how to run the BasicSP example using the integrated Repository Manager (RepoMan).

- Be sure to add $CIAO_ROOT/HTTP_DOWNLOADED_LIBS into your PATH environment variable. This directory include the downloaded component lib files.

- If you want to use CORBA naming service to get the RepoMan object reference, then please start naming service with multicast mode.

      $TAO_ROOT/orbsvcs/Naming_Service/naming_service -m 1

- Build & start JAWS server.

1. Be sure to set JAWS_DOCUMENT_ROOT to the installation path of the RepoMan, i.e., $CIAO_ROOT/DAnCE/RepositoryManager.
2. Start JAWS:

    Change the current directory into $ACE_ROOT/apps/JAWS/server
    main

- Start RepoMan. Make sure you have BasicSP or BMClosedED, BMDevice, BMDisplay & EC installed in the RepoMan you want to use. Please refer to the README file of RepoMan to get the instructions about how to installed Packages into RepoMan.

1. Using ior file:

    Change the current directory into $CIAO_ROOT/DAnCE/RepositoryManager
    RepositoryManagerDaemon -o

2. Using Naming Service:

    Change the current directory into $CIAO_ROOT/DAnCE/RepositoryManager
    RepositoryManagerDaemon -v [NameofRM]

- Change the current directory into $CIAO_ROOT/examples/BasicSP/descriptors.

- Start NodeManagers.

      basicNodeDaemon.pl

- Start ExecutionManager.

      $CIAO_ROOT/DAnCE/ExecutionManager/Execution_Manager -o EM.ior -i NodeManagerMap.dat

- Start plan_launcher.

1. Not using RepoMan:

    $CIAO_ROOT/DAnCE/Plan_Launcher/plan_launcher -p flattened_deploymentplan.cdp -k file://EM.ior

2. Using ior file to get RepoMan, providing the name of one composite componemt:

    $CIAO_ROOT/DAnCE/Plan_Launcher/plan_launcher -p flattened_deploymentplan.cdp
    -a BasicSP
    -k file://EM.ior
    -l file://$CIAO_ROOT/DAnCE/RepositoryManager/RepositoryManagerDaemon.ior

3. Using naming service to get RepoMan, providing the name of one composite componemt:

    $CIAO_ROOT/DAnCE/Plan_Launcher/plan_launcher -p flattened_deploymentplan.cdp
    -a BasicSP
    -k file://EM.ior
    -v [NameofRM]

4. Using naming service to get RepoMan, providing the names of several individual componemts:

    $CIAO_ROOT/DAnCE/Plan_Launcher/plan_launcher -p flattened_deploymentplan.cdp
    -a BMClosedED+BMDevice+BMDisplay+EC
    -k file://EM.ior
    -v [NameofRM]

5. Using naming service to get RepoMan, providing the types of several individual componemts:

    $CIAO_ROOT/DAnCE/Plan_Launcher/plan_launcher -p flattened_deploymentplan.cdp
    -e IDL:BasicSP/EC:1.0+IDL:BasicSP/BMDisplay:1.0+IDL:BasicSP/BMDevice:1.0+IDL:BasicSP/BMClosedED:1.0
    -k file://EM.ior
    -v [NameofRM]

- Start the application.

      $CIAO_ROOT/examples/BasicSP/EC/controller

Email: shanshan.jiang@vanderbilt.edu