Deploy Multiple Components

Now that we have componentized the client and server functionality, we are free to deploy those components to any executables we want without having to change the components at all. In fact, multiple components can be included in a single executable.

To demonstrate, we can put the two components greetClient and greetServer into the same executable. This is a simple change to helloWorld.adef like this:

executables:
{
    helloWorld = ( greetServer greetClient )
}

processes:
{
    run:
    {
        (helloWorld)
    }
}

bindings:
{
     helloWorld.greetClient.hello -> helloWorld.greetServer.hello
 }

Now we can run mkapp to build the application.

$ mkapp helloWorld.adef -t wp85

Copyright (C) Sierra Wireless Inc. Use of this work is subject to license.