To communicate details of a particular microservice/component to the servers, we need to define the microservice in such a way that servers understand the microservice. The language used for this purpose is XML. A component is defined using an XML file called 'ServiceDesriptor.xml'. The definition includes properties of the component such as its name, operating system to which the component is complaint to, and channels through which the component interacts with other components among other properties.
A wizard to aid users to define the component to be created is provided in the template engine.
On Windows
- Browse to %TEMPLATE_ENGINE%
- Run templates-console.bat; a command prompt opens in directory pointed to %TEMPLATE_ENGINE%.
Run the command
wizard.bat
specifying the destination directory as follows:Example
Figure 1: wizard.bat command specifying the destination directory
On Linux
- Browse to %TEMPLATE_ENGINE% in Linux console
Run the command
wizard.sh
specifying the destination directory as follows:Example