cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to instantiate the SAP HANA XSA Messaging Service via the MTA YAML file?

iashishsingh
Participant
527

Hello,

We have been trying to instantiate a XSA Messaging Service instance using the mta.yaml file in a WebIDE project but it is not working out as desired. The aim is to have a self-contained deployment package that instantiates the XSA messaging service automatically upon deployment instead of requiring manual administrator intervention via the cockpit.

The main missing piece is:

a. What is the resource type of a Messaging Service?
For e.g. Resource type of a UAA and UI5 service are com.sap.xs.uaa-space and org.cloudfoundry.managed-service respectively.

The current approach : -

1. Define the resource as

  - name: msg-service
    type: org.cloudfoundry.managed-service
    parameters:
      service: messaging-service
      service-plan: free

2. Include the resource as a dependency for a NodeJS module as

- name: core_xsjs
    type: nodejs
    path: core_xsjs
    provides:
      - name: core_xsjs_api
        properties:
          url: '${default-url}'
    requires:
      - name: UAA-service
      - name: hdi_db
      - name: db
      - name: msg-service

Result -

A Messaging service instance does get created but the build of the project fails with message

service msg-service not found

Any guidance would be very much appreciated.

Thanks,

Ashish

View Entire Topic
valerjans
Explorer
0 Kudos

Instance "msg-service" of messaging service "messaging-service" will not be created, if there is not Messaging Service Broker on the XSA Platform "messaging-service" listed in SAP HANA XS Advanced Cockpit - Services - Service Marketplace. Ask admin to add/install/subscribe. See also:
https://help.sap.com/docs/SAP_HANA_PLATFORM/cf8b4c5847374960a68b55cb86eae013/c1100b7d1e824727a89c6fd...