Spring Boot: Pick up a dedicated Camunda transaction manager

XMLWordPrintable

      Component

      https://github.com/camunda/camunda-bpm-platform/tree/master/spring-boot-starter

      User story

      When implementing a Spring Boot application with multiple data sources and therefore transaction managers, I want to easily configure the correct transaction manager that the Camunda Spring Boot Starter should use.

      Background

      For data sources, we have the following pattern (https://docs.camunda.org/manual/7.12/user-guide/spring-boot-integration/configuration/#defaultdatasourceconfiguration):

      • If present, a data source named camundaBpmDataSource is used
      • Else the @Primary data source is used

      For transaction managers, we currently always use the @Primary one. Since data source and tx manager must be configured consistently (CAM-11270), it would be helpful if a dedicated named Camunda tx manager (e.g. camundaBpmTransactionManager) can be used. That way users do not have to a) use the primary tx manager for Camunda or b) write more complex code to configure a secondary tx manager with Camunda (e.g. overriding the entire data source configuration class).

      Acceptance Criteria

            Assignee:
            Nikola Koevski
            Reporter:
            Thorben Lindhauer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: