0

To be able to send SQL queries for Axon queries to a database reader instance and SQL queries for Axon commands to a database writer instance I need to run Axon query handlers within a read only spring transaction. It is important that the transaction is read only from the beginning, so @Transactional(readOnly = true) on query handlers is not enough.

How to configure the Axon query bus to run with read only spring transactions while the Axon command bus and other Axon beans work with the autoconfigured transaction manager and by keeping all other autoconfigured configurations for the busses?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.