JGroups

JGroups is a library for reliable one-to-one or one-to-many communication written in the Java language.

This saves significant development time and allows for the application to be deployed in different environments without having to change code.

This code below demonstrates the implementation of a simple command-line IRC client using JGroups: A JChannel is instantiated from an XML configuration (e.g. udp.xml).

Anything typed in the main loop results in the creation of a message to be sent to all cluster members, including the sender.

The most powerful feature of JGroups is its flexible protocol stack, which allows developers to adapt it to exactly match their application requirements and network characteristics.