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?