Red Hat Training

A Red Hat training course is available for Red Hat Fuse

Chapter 81. JGroups

JGroups Component

Available since Camel 2.10.0
JGroups is a toolkit for reliable multicast communication. The jgroups: component provides exchange of messages between Camel infrastructure and JGroups clusters.
Maven users will need to add the following dependency to their pom.xml for this component:
    <!-- use the same version as your Camel core version -->

Camel on EAP deployment

This component is supported by the Camel on EAP (Wildfly Camel) framework, which offers a simplified deployment model on the Red Hat JBoss Enterprise Application Platform (JBoss EAP) container. For details of this model, see chapter "Apache Camel on JBoss EAP" in "Deploying into a Web Server".

URI format

Where clusterName represents the name of the JGroups cluster the component should connect to.


Name Default Value Description
channelProperties null *Camel 2.10.0:* Specifies configuration properties of the JChannel used by the endpoint.


Using jgroups component on the consumer side of the route will capture messages received by the JChannel associated with the endpoint and forward them to the Camel route. JGroups consumer processes incoming messages asynchronously.
// Capture messages from cluster named
// 'clusterName' and send them to Camel route.
Using jgroups component on the producer side of the route will forward body of the Camel exchanges to the JChannel instance managed by the endpoint.
// Send message to the cluster named 'clusterName'