Examples: Overview
The examples are already compiled in the distribution. If you want to rebuild the examples, use Apache Ant as follows:
cd examples ant
Note
The examples are actually built using Sigil and Apache Ivy.
The following examples take you from the basic installation and dynamic wireup of composites within a single Newton container, right through to the use of Systems to dynamically provision and wire up graphs of components spanning multiple containers.
- Chainlink
- This is the example to try first. Several link composites are installed, dynamically wired up and rewired in response to a change. Then everything is uninstalled leaving Newton in its initial state.
- Remote Chainlink
- Repeats the chainlink demo, showing how Newton uses Jini to distribute the chain across several JVMs.
- Spring OSGi Chainlink
- In this example we show how Newton can be used to manage Spring OSGi bundles.
- Scatter Gather
- Shows how to build a scatter-gather grid using Newton. This example makes use of a Javaspace.
- Scatter Gather System
- Repeats the last demo using Environments to deploy and dynamically scale the application.
- Smart Proxy
- Shows how Jini Smart Proxies are supported by Newton.
- Fractal Render
- Combines concepts used in previous demos to show how to build a real world application to render fractal images using a scatter gather pattern.



