Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
We do not recommend connecting to multiple external databases, but we understand that your limits data may not exist in the same location. It is technically possible to connect Atoti Limits to multiple external databases. This is not a feature we intend to support out-of-the-box, however if you would like to do so, the general steps are:- Create a new datasource configuration in your
application.ymlsimilar to thelimits.application.datasourceconfiguration - Map the repositories to the datatables you would like to use with this datasource. You will need
to add a Spring
@Configurationclass similar toLimitsJpaConfig.java. The important parts are:
basePackageClasses will be mapped
to YOUR_TRANSACTION_MANAGER_FACTORY.
The example below will only map the ILimitStructuresJpaRepository repository to its equivalent
datatable in the datasource.
- Configure your custom persistence service to use
the correct transaction manager.
For an example of how this is done see the
@Transactionalannotation in theDefaultLimitsAppCrudServiceclass.