Introducing the mta.yaml File
Watch this video to know more about the mta.yaml file.
The following video explains the basic elements about the content and usage of the mta.yaml file.
Objective
Watch this video to know more about the mta.yaml file.
The following video explains the basic elements about the content and usage of the mta.yaml file.
The modules in the multi-target application can depend one on the other, as well they can depend on external services that are required to be instantiated in the Cloud Foundry environment. For example, a UI module could require the existence of a back-end application module, and a back-end application could require to be bound to a database service instance.
Use the requires statement to define dependencies:
Within the mta.yaml file, on module definition, you can include a parameters: statement followed by a list of name: value pairs.
In the mta.yaml file, you can use the properties statement to define a list key: value pairs. On application deployment to Cloud Foundry, such pairs determine the creation of values in the User-Provided Variables tab. Such variables are accessible by the running application as OS level environment variables.
Within the mta.yaml file, you can define and exchange configuration variables between modules. Such variables are calculated and exchanged at deploy time. They are mostly used for the following purposes:
Watch this video to learn how to use the provides and requires statements o exchange configuration variables between modules.
In Java, local environment variables can be read using the System.getenv(…) method.
Log in to track your progress & complete quizzes