on 2020 Apr 24 11:12 AM - last edited on 2024 Feb 04 9:22 AM by postmig_api_4
Hello,
I am trying to add two user provided services to access 2 different classic schemas in my container.
DB module build and adding synonyms are working fine if I add only any one of those services, but not success if I add both of them at once.
I have added two seperate .hdbgrants files for these services. ( these files are built successfully before building DB module)
Have you succeeded to consume 2 user provided services in the same project?
Can anyone help to figure out whats going wrong here?
Thanks.
Request clarification before answering.
Hi,
After raising this to SAP, This issue has been confirmed as bug and they are planning to release the fix in July.
I followed this workaround meanwhile. You can use the physical service name instead of WebIDE generated logical name as below.
- name: SCHEMA1-grantor
- name: SCHEMA2-grantor
----
resources:
- name: SCHEMA1-grantor
type: org.cloudfoundry.existing-service
- name: SCHEMA2-grantor
type: org.cloudfoundry.existing-service
However, Below is the WebIDE default and recommended way of using after the bug fix.
- name: cross-container-service-1
group: SERVICE_REPLACEMENTS
properties:
key: ServiceName_1
service: ~{the-service-name}
- name: cross-container-service-2
group: SERVICE_REPLACEMENTS
properties:
key: ServiceName_2
service: ~{the-service-name}
----
resources:
- name: cross-container-service-1
parameters:
service-name: SCHEMA1-grantor
properties:
the-service-name: ${service-name}
type: org.cloudfoundry.existing-service
- name: cross-container-service-2
parameters:
service-name: SCHEMA2-grantor
properties:
the-service-name: ${service-name}
type: org.cloudfoundry.existing-service
Hope this helps.
Regards,
Suchen Oguri.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.