Previous: Installing po_gnatdist, Up: Building a DSA application with PolyORB



8.4.3 Using po_gnatdist with PolyORB

For extensive documentation on the configuration language of po_gnatdist and usage of the po_gnatdist command, please report yourself to the GLADE User Guide. In this section we will only explain basic usage of po_gnatdist to compile the Echo example.

First we need to describe how we want to partition our application. For this we will create a po_gnatdist configuration file echo.cfg:

     
     configuration Echo is
     
        --  We declare a server partition that executes the server package ...
     
        Server_Partition : partition := (Server);
     
        --  ... and a client partition that executes the client main procedure
     
        Client_Partition : partition;
        procedure Client is in Client_Partition;
     
        --  The partitions' executables should be put in ./bin
     
        for Partition'Directory use "bin";
     
     end Echo;
     

Now we are ready to build our distributed application with the command:

     po_gnatdist echo.cfg