dcdh / todoapp

2 stars 0 forks source link

official axon cdi module : fail to start #4

Open dcdh opened 5 years ago

dcdh commented 5 years ago

Application failed to start when mongoclient is injected and used to setup axon framework.

todoapp-write-14-l7kpm.log

dcdh commented 5 years ago

https://github.com/holisticon/axon-cdi/issues/8

dcdh commented 5 years ago

https://github.com/dcdh/todoapp/blob/master/todoapp-write/src/main/java/com/damdamdeo/todoapp/write/infra/AxonConfiguration.java

Failed when producing this:

    @Produces
    @ApplicationScoped
    public TokenStore produceTokenStore() {
        return new MongoTokenStore(mongoTemplate(), new XStreamSerializer());
    }

because mongoTemplate() used databaseWriteEventStore which is injected by CDI container in Wildfly Swarm.