# JMS Clustered Grouping Example
To run the example, simply type **mvn verify** from this directory, or **mvn -PnoServer verify** if you want to start and create the broker manually.
This example demonstrates how to ensure strict ordering across a cluster using clustered message grouping
We create 3 nodes each with a grouping message handler, one with a Local handler and 2 with a Remote handler.
The local handler acts as an arbitrator for the 2 remote handlers, holding the information on routes and communicating the routing info with the remote handlers on the other 2 nodes
We then send some messages to each node with the same group id set and ensure the same consumer receives all of them
Here's the relevant snippet from the broker configuration that has the local handler
netty-connector
500
true
STRICT
1
LOCAL
jms
5000
Here's the relevant snippet from the broker configuration that has the remote handlers
500
true
STRICT
1
REMOTE
jms
5000