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: { helloServer = ( greetServer ) helloClient = ( greetClient ) } processes: { run: { (helloClient) (helloServer) } } bindings: { helloClient.greetClient.hello -> helloServer.greetServer.hello }
Now we can run mkapp
to build the application.
$ mkapp helloWorld.adef -t wp85
Copyright (C) Sierra Wireless Inc.