From 67fca6c3e181a3f7932c27f7d43c761270196990 Mon Sep 17 00:00:00 2001 From: Rene Jeglinsky Date: Mon, 30 Mar 2026 20:53:40 +0200 Subject: [PATCH 1/2] Update multitenancy configuration for CAP Java projects --- guides/multitenancy/index.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/guides/multitenancy/index.md b/guides/multitenancy/index.md index 52dc05f19b..7a1851b569 100644 --- a/guides/multitenancy/index.md +++ b/guides/multitenancy/index.md @@ -119,7 +119,11 @@ In case of **CAP Java** projects, the `cds add multitenancy` command... "requires": { "[production]": { "multitenancy": true + }, + "[with-mtx]": { + "multitenancy": true } + } } ``` @@ -132,18 +136,23 @@ In case of **CAP Java** projects, the `cds add multitenancy` command... cds-feature-mt runtime + + + org.xerial + sqlite-jdbc + runtime + ``` - 3. Adds the following to your _srv/src/java/resources/application.yaml_: + 3. Adds the following to your _srv/src/main/resources/application.yaml_: ```yml --- spring: - config.activate.on-profile: cloud + config.activate.on-profile: with-mtx cds: multi-tenancy: - mtxs.enabled: true - + sidecar.url: http://localhost:4005/ # in production mode overwrite with the URL from mta.yaml ``` 4. Adds a sidecar subproject at `mtx/sidecar` with this _package.json_: @@ -155,8 +164,7 @@ In case of **CAP Java** projects, the `cds add multitenancy` command... "@cap-js/hana": "^2", "@sap/cds": "^9", "@sap/cds-mtxs": "^3", - "@sap/xssec": "^4", - "express": "^4" + "@sap/xssec": "^4" }, "devDependencies": { "@cap-js/sqlite": "^2" From beadda69e43548e139a5c829cb498da26b3ee278 Mon Sep 17 00:00:00 2001 From: Rene Jeglinsky Date: Mon, 30 Mar 2026 21:08:37 +0200 Subject: [PATCH 2/2] Fix multitenancy profile configuration for CAP Java projects --- guides/multitenancy/index.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/guides/multitenancy/index.md b/guides/multitenancy/index.md index 7a1851b569..1cf7e16dd8 100644 --- a/guides/multitenancy/index.md +++ b/guides/multitenancy/index.md @@ -112,10 +112,7 @@ In case of **CAP Java** projects, the `cds add multitenancy` command... ```jsonc { - "profiles": [ - "with-mtx-sidecar", - "java" - ], + "profile": "with-mtx-sidecar", "requires": { "[production]": { "multitenancy": true