multitenancy
multitenancy copied to clipboard
Change datasource dynamically through controller
Hello,
I want to split my request into multiple request which will perform operation in their own tenant. so currently i'm using rest template to do that.
Ex.: suppose director want to get complaints. director is linked with three tenant. and when request arrives i want to fetch all tenant and get data by changing datasource in controller or in service.
for this currently i'm using rest template my request is breainto multiple Rest request.
Is there is any other way to do that.