Hello all,
I have extended https://github.com/Qyotta/axon-eventstore (Greg Young’s EventStore Java client with Axon wrapper) to support Axon 3.0.4 and included as a reference in a spring boot POC I am creating.
In a configuration file I added:
// EventStore extends EventBus
@Bean
public EventStore eventStore() {
final EsEventStore esEventStore = new EsEventStore(new EventStoreClient(new EsContextDefaultImpl(EventStoreSettings.withDefaults()
.host("http://127.0.0.1:2113")
.build())));
return esEventStore;
}
Since I'm using JPA to persist the data to a postgresSQL database I got an error saying I needed an EventBus (assuming axon spring boot starter configuration detected this), so I added to the same config file:
// Since EventStore extends EventBus, now we have 2 buses