Skip to content

Support multiple DataSources in the Spring Boot starter #205

Description

@zantvoort

Storm already ships Spring Boot integration; the 1.13.0 milestone tightens it further. This issue covers running against more than one database.

The starter creates a single ORMTemplate from the single DataSource, and StormTransactionAutoConfiguration binds to the first matching PlatformTransactionManager. Qualifier support exists for repository injection, but there is no supported way to run two templates against two DataSources with correctly matched transaction managers. Once the integration points are instance-scoped (#198), each template can carry its own connection provider and transaction bridge, and this becomes a wiring exercise.

Tasks:

  • Per-DataSource ORMTemplate wiring with qualifiers
  • Transaction manager matched per template instead of first-match
  • Repository scanning that can target a specific template
  • Docs with a two-database example

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestspringSpring and Spring Boot integration

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions