Skip to content

Commit

Permalink
cds.requires.messaging=true
Browse files Browse the repository at this point in the history
- mta.yaml workaround
- update versions
  • Loading branch information
vl-leon committed Feb 18, 2025
1 parent 17231d4 commit cc090b7
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 47 deletions.
6 changes: 1 addition & 5 deletions bookstore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@
"kind": "odata",
"model": "@capire/orders"
},
"messaging": {
"[development]": { "kind": "file-based-messaging" },
"[hybrid]": { "kind": "enterprise-messaging-shared" },
"[production]": { "kind": "enterprise-messaging" }
},
"messaging": true,
"db": {
"kind": "sql"
}
Expand Down
5 changes: 5 additions & 0 deletions mta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ modules:
memory: 256M
build-parameters:
builder: npm
properties:
cds_requires_messaging: enterprise-messaging
provides:
- name: orders-api
properties:
Expand All @@ -45,6 +47,8 @@ modules:
memory: 256M
build-parameters:
builder: npm
properties:
cds_requires_messaging: enterprise-messaging
provides:
- name: reviews-api
properties:
Expand All @@ -64,6 +68,7 @@ modules:
disk-quota: 256M
memory: 256M
properties:
cds_requires_messaging: enterprise-messaging
cds_requires_ReviewsService_credentials: {"destination": "reviews-dest","path": "/reviews"}
cds_requires_OrdersService_credentials: {"destination": "orders-dest","path": "/odata/v4/orders"}
build-parameters:
Expand Down
6 changes: 1 addition & 5 deletions orders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
},
"cds": {
"requires": {
"messaging": {
"[development]": { "kind": "file-based-messaging" },
"[hybrid]": { "kind": "enterprise-messaging-shared" },
"[production]": { "kind": "enterprise-messaging" }
}
"messaging": true
}
},
"scripts": {
Expand Down
108 changes: 76 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions reviews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
},
"cds": {
"requires": {
"messaging": {
"[development]": { "kind": "file-based-messaging" },
"[hybrid]": { "kind": "enterprise-messaging-shared" },
"[production]": { "kind": "enterprise-messaging" }
},
"messaging": true,
"db": { "kind": "sql" }
}
},
Expand Down

0 comments on commit cc090b7

Please sign in to comment.