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.batspecifying the destination directory as follows:wizard.bat -dest c:\development\CustomServices
Figure 1: wizard.bat command specifying the destination directory
-
Run
wizard.batwithout any arguments to see the help. -
-destargument specifies the directory where to generate project.
On Linux
-
Browse to %TEMPLATE_ENGINE% in Linux console
-
Run the command
wizard.shspecifying the destination directory as follows:wizard.sh -dest c:\development\CustomServices
-
Run
wizard.shwithout any arguments to see the help. -
-destargument specifies the directory where to generate project.
Continue referring the next sections to understand rest of the steps.