Lesson 2.3: Generate configuration files for eXtreme Scale servers with Eclipse tools

To use WebSphere® eXtreme Scale servers in the Liberty, you must generate the XML configuration files that the container servers require to run in the Liberty profile.

Before you begin

To complete this lesson, you must create an Eclipse project. If you do not already have one created, then complete the following steps:
  1. Click File > New > Project.
  2. Expand the General folder, and select Project. Click Next.
  3. Specify the project name. For example, specify tutorial, and accept the default project location option. Click Finish.
  4. Create a folder inside the new project. Right-click the tutorial project, and select New > Folder.
  5. Select tutorial as the parent folder, and specify a folder name; for example, name your folder XMLs. Click Finish.

About this task

The configuration files, objectGrid.xml and gridDeployment.xml, that you create in this lesson contain important configuration information for eXtreme Scale servers. For example, the objectGrid.xml file defines the backing maps and eXtreme Scale APIs that client applications use to interact with the data grid. The gridDeployment.xml file defines information such as which data grids to deploy and the number of partitions that exist in a set of backing maps.

Procedure

  1. Generate the objectGrid.xml and objectGridDeployment.xml files in Eclipse.
    1. Select File > New > Other.
    2. Expand the WebSphere eXtreme Scale folder, and select Object Grid Configuration XMLs on the Select a wizard panel.
    3. Select the tutorial project from the Project drop-down menu. Click Next.
    4. Select Browse to specify the Folder.
      Select the XMLs folder when the Select a folder panel is displayed. Click OK.
    5. Accept the default settings for the remaining data grid settings.
      For example, the default map, Map1, along with the specified parameters will be a part of the eXtreme Scale configuration files that are generated. Click Next.
    6. Specify the deployment information for the eXtreme Scale servers. Click Finish.
    The objectGrid.xml and objectGridDeployment.xml files are generated, along with the objectgrid.gcr file, which contains general information for both XML files.
  2. Copy the objectGrid.xml and objectGridDeployment.xml files to the grids folder.

Results

You have generated the configuration files, objectGrid.xml and gridDeployment.xml , which determine how client applications interact with the data grid. Then, you copied the objectGrid.xml and objectGridDeployment.xml files to the defaultServer/grids directory so that you can run container servers in the Liberty.