MultiTenancy - DB Schema Isolation through Rest API

Hello All,

I am trying to use Multi-Tenancy with Database schema isolation for different tenants and I can see posts or articles are available in the portal are related to Java embedded code but I am really looking for an approach with Rest API and docker image.

Appreciate your help!

Thank you.

Jagadish

HI @JagadishL I am trying to achieve the same. Can you please brief about how you achieved it?

Hi @Vedika

We use Camunda Wildfly image which is running on Docker containers. we created different schema for each tenants under same DB. we made the change in standalone.xml file to point different schema for each tenants.

we copy the all necessary files from local to dest location(into the image)when we build image through docker commands .

This is working for us as expected.

Thanks for your reply!
Actually I also configured multiple data sources for each process engine in the standalone.xml to achieve db isolation . Still haven’t figured out how just one datasouce can can help me connect to different databases via java. Any idea about that?
I tried to set up new connections via java code… but then I get exceptions such as db already in use. and the solutions finally lead to h2 db specific solutions of using the same in server mode. Which is not what we want i.e. A db specific solution!