Closed zistow closed 1 week ago
@zistow, would you mind expanding the description to contain all the valuable information from the referred to discuss issue? As it is, this ticket is unclear. Thanks for your help!
The way to go is to create a custom component that extends: MultiTenantAwareComponent
Inject the Tenant Provider bean and subscribe to your custom component for updates:
tenantProvider.subscribe(multiTenantAwareComponent);
Your component will get called every time there is a new tenant registered through this approach.
Refers to: https://discuss.axoniq.io/t/multitenancy-datasource-and-hikari-properties/5662/5?u=kaef