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:
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
ORMTemplatefrom the singleDataSource, andStormTransactionAutoConfigurationbinds to the first matchingPlatformTransactionManager. 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:
ORMTemplatewiring with qualifiers