Working With Context Root Discovery URLs

The Lawson Grid provides a service that enables clients to discover the context root URLs for HTTP-based grid applications. This service provides a document in XML or JSON format that shows the accessible web facets of the grid and its applications. Clients can then discover how to connect to grid applications by having only the HTTP address to a grid router.

The following is an example of the raw XML document:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<grid xmlns="http://schemas.lawson.com/grid/http/info" version="10.1.8.0 4" name="ProductionGrid">
  <application typeName="SYSTEM" name="SYSTEM">
    <module accessible="true" name="WebAccess">
      <contextRoot type="Rest Service" href="grid">
        <url authType="none">http://server1.mycompany.com:10080/grid/</url>
      </contextRoot>
    </module>
  </application>
  <application typeName="MI-WS" name="M3-API-WS">
    <module accessible="true" name="MI-WS">
      <contextRoot type="Web Service" href="m3api">
        <url authType="none">http://server1.mycompany.com:10080/m3api/</url>
      </contextRoot>
      <contextRoot type="Rest Service" href="m3api-rest">
        <url authType="none">http://server1.mycompany.com:10080/m3api-rest/</url>
      </contextRoot>
    </module>
  </application>
  <webstart>http://server2.mycompany.com:29904/</webstart>
</grid>

This information in the XML file repeats some of the same information you can view in HTML format at http(s)://server:port/grid/info.html. To retrieve the URL of a specific grid application, you need to provide three keys: the application type, module and context root type. If multiple instances of an application have been installed, you must also provide the application name when querying for the URL.

The application type, module, and context root type are pre-configured in the application and cannot be changed. The application name is set at installation. The context root type will be Web Service, Rest Service, or Web Application.

In the info.html file, the values for these are in the Application, Module, and Type columns. In the XML document, the values are in the application, module, and contextRoot elements.