EmbeddedEventStore Thread Factory
See original GitHub issueHi,
we’ve noticed, that the EmbeddedEventStore
is fetching events from the store without any transaction.
In our case the EmbeddedEventStore
is configured with an instance of the NoTransactionManager
, what is causing an issue in the underlying Postgres database, because Large Objects may not be used in auto-commit mode
.
So we’ve tried to configure the EmbeddedEventStore
with a real transaction manager, but the transaction needs to run inside a Java EE managed thread.
Unfortunately there is no possibility to configure the thread factory in the EmbeddedEventStore
(private final attribute). There is only a hard coded AxonThreadFactory
that is assigned to that property in the constructor.
How can we configure the EmbeddedEventStore
to create it’s EventProducer
threads with a customizable thread factory?
Shouldn’t there be a possibility to register a global thread factory for all Axon threads?
Thank you in advance & best regards, Tobias
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:10 (8 by maintainers)
Top GitHub Comments
I will make sure this issue is definitely resolved in #754
It is a correct assumption that the
ThreadFactory
should be configurable for theEmbeddedEventStore
. We will schedule this work to be performed in the near future. Thanks for providing the thorough ticket description @tgippi, that helps us out a lot.