This example demonstrates a simple Calculator application that is composed of POJO services for each calculator function (add, subtract, multiply and divide).
Each calculator function is a deployable service, and the Calculator has a declared association to each service. The Calculator service becomes 'whole' when it discovers it's required services. The Calculator is a good example on the use of associations and how association based dependency injection can be used.

Look here for information on building the example
Look here for information on running the example
The example also provides a test client that uses the Rio test infrastructure to create and invoke methods on the Calculator service.