ESB
13.2 13.1 13.0 12.2 12.1 12.0 11.0
13.2 13.1 13.0 12.2 12.1 12.0 11.0

Defining Microservices

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
  1. Browse to %TEMPLATE_ENGINE%

  2. Run templates-console.bat; a command prompt opens in directory pointed to %TEMPLATE_ENGINE%.

  3. Run the command wizard.bat specifying the destination directory as follows:

    wizard.bat -dest c:\development\CustomServices
    

    worddav20737e76fc929b5e11a2e17e0aabbf5e.png
    Figure 1: wizard.bat command specifying the destination directory

  • Run wizard.bat without any arguments to see the help.

  • -dest argument specifies the directory where to generate project.

On Linux
  1. Browse to %TEMPLATE_ENGINE% in Linux console

  2. Run the command wizard.sh specifying the destination directory as follows:

    wizard.sh -dest c:\development\CustomServices
    
  • Run wizard.sh without any arguments to see the help.

  • -dest argument specifies the directory where to generate project.

Continue referring the next sections to understand rest of the steps.