// Use the jgroup channel and the serializer to setup the connector to the jgroup cluster
JGroupsConnector connector = new JGroupsConnector(channel, "myCluster", localSegment, serializer);
// Setup the distributed command bus using the connector and the routing strategy
DistributedCommandBus commandBus = new DistributedCommandBus(connector);
// Register the Command Handlers with the command bus using the annotated methods of the object.
AnnotationCommandHandlerAdapter.subscribe(new ToDoLoggingCommandHandler(), commandBus);
// Start the connection to the distributed command bus