we’re working on a springboot based camunda application. The application should write data to its own database (not the one used by the process engine).
But there is one thing still unclear to me. According to the docs, I have to configure two DataSources and two TransactionManagers. But how can I tell to the camunda engine which TxManager it should use? In the docs, a qualifier (“camundaBpmDataSource”) is only provided for the DataSource so that camunda has a chance to see that it’s the right datasource. But there is no qualifier for the TxManager. How would camunda pick the right one?
Thank you, we did it in a very similar way (but without the qualifier “camundaTransactionManager”). I just wonder why this is not in the docs (which is usually good, but misses an important detail here).
Yes, this is the section I referenced in my original post. But it does not describe how to set the correct transaction manager in the engine (and does not even mention that it should be done).