cancel
Showing results for 
Search instead for 
Did you mean: 

How to return Destination service as a dependency in CAP java application in SAP BTP Cloud foundry

09-16-2023 10:54 AM
dasriyan Explorer
878 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

I am trying to develop of multi-tenant application using CAP. Now I want to return destination service as a dependency during tenant subscription. I am not able figure out how to do it like what changes I have to make in "mta.yaml" file and how the callback handler method should be written in java. can someone please help me

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

marcbecker
Product and Topic Expert
Product and Topic Expert
0 Likes

As far as I know it is not required to do any changes in mta.yaml for this.
A sample how to return an additional service dependency during onboarding can be found in our CAP documentation: https://cap.cloud.sap/docs/guides/deployment/as-saas#returning-dependencies

You need to register the event handler on the DeploymentService (https://www.javadoc.io/doc/com.sap.cds/cds-services-api/latest/com/sap/cds/services/mt/DeploymentService.html)