/apache-river-example

An example project that uses Apache River

Primary LanguageJavaApache License 2.0Apache-2.0

Apache River Example - README

This project contains an example that shows how to use Apache River.

Building the example

The project uses Gradle to manage the dependencies and build the examples. There is no need to download and build the main River distribution or tools; the River artifacts are deployed to Maven Central, Gradle will automatically download the binary artifacts as needed for the examples build.

To build the examples, simply run:

cd apache-river-example
gradlew build

This will build the project and also run the integrated tests.

The Hello Service Example

In a nutshell, a River service project should be built as multi-module project, that reflects the basic architectural elements of a distributed service. Given the service name of hello, the service project is composed of the following modules:

  • hello-api The hello-api module contains all the classes (interfaces and other classes) that is needed to communicate with the service

  • hello-service The hello-service module, depends on the hello-api module, and provides the backend service implementation.

Service Browser

This is a utility that allows you to browse the services that are operating in your workgroup, or ‘djinn’. The Service Browser can be started by changing into the river-services/browser, and running gradlew browser