Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-11923

Spring Boot: Pick up a dedicated Camunda transaction manager

    XMLWordPrintable

    Details

      Description

      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

        mgm-controller-panel

        This is the controller panel for Smart Panels app

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                nikola.koevski Nikola Koevski
                Reporter:
                thorben.lindhauer Thorben Lindhauer
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Salesforce