ReplayingCluster replayingCluster = new ReplayingCluster(new SimpleCluster("simple"), eventStore,
new NoTransactionManager(), 0,
new BackloggingIncomingMessageHandler());
// we initialize an event bus that contains our replaying cluster
EventBus eventBus = new ClusteringEventBus(new DefaultClusterSelector(replayingCluster));
// we subscribe our two listeners to the Event Bus
AnnotationEventListenerAdapter.subscribe(new ThreadPrintingEventListener(), eventBus);
AnnotationEventListenerAdapter.subscribe(new AnotherThreadPrintingEventListener(), eventBus);