--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
public static void main(final String[] args) {
final ApplicationContext ctx = SpringApplication.run(SsppApplication.class, args);
final RisorsaEventHandler r = ctx.getBean(RisorsaEventHandler.class);
final RisorsaQueryRepository repo = ctx.getBean(RisorsaQueryRepository.class);
r.setRisorsaQueryRepository(repo);
// @Bean
public EventStorageEngine postgresEventStorageEngine(Serializer serializer) {
return new PostgresEventStorage(entityManagerProvider(), springTransactionManager(), serializer);
}
// @Bean
// public EventStorageEngine eventStorageEngine() throws Exception {
// return new JpaEventStorageEngine(entityManagerProvider(), springTransactionManager());
// }
@Bean
public SagaStore<Object> postgresJPASagaStore(Serializer serializer) {
return new PostgresJsonSagaStore(serializer, entityManagerProvider());
}
@Bean
public EventStore eventStore(EventStorageEngine eventStorageEngine, Serializer serializer) {
return new EmbeddedEventStore(postgresEventStorageEngine(serializer));
}