-
Bug Report
-
Resolution: Duplicate
-
L3 - Default
-
None
-
None
-
None
We're using Camunda BPM with Spring Boot with the following configuration:
- our primary DataSource bean is our application database
- we have a non-primary bean camundaBpmDataSource which is the datasource that Camunda should use
This configuration creates a problem with the DefaultDatasourceConfiguration in the Spring Boot Starter. While the starter expects that Camunda's datasource can be non-default (so camundaBpmDataSource overrides the primary datasource), it uses the default PlatformTransactionManager, which is the transaction manager for the primary datasource.
As a result, Camunda creates a lot of connections to the primary datasource which it doesn't actually use.
We've fixed this for ourselves by providing a fixed version of CamundaDatasourceConfiguration, but it would be great if this could be somehow fixed in the starter itself.
Hi m_burst,
Thank you for reaching out to us with this.
Could you please provide us a minimal example that demonstrates the issue if this is possible.
This will speed up the qualification of the ticket and illustrate better the use case.
In case providing example is not possible, could you please share the following information:
Do I understand correctly that the existence of two different data source bean means that you have two different database or the requirements for the different data source beans comes due to another reason, could you elaborate further on that?
Best regards,
Yana