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:
- Click .
- Expand the General folder, and select Project.
Click Next.
- Specify the project name. For example, specify tutorial, and accept the
default project location option. Click Finish.
- Create a folder inside the new project. Right-click the tutorial project,
and select .
- 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
-
Generate the objectGrid.xml and
objectGridDeployment.xml files in Eclipse.
-
Select .
-
Expand the WebSphere eXtreme Scale folder, and select Object
Grid Configuration XMLs on the Select a wizard panel.
-
Select the tutorial project from the Project
drop-down menu. Click Next.
-
Select Browse to specify the Folder.
Select the XMLs folder when the Select a folder
panel is displayed. Click OK.
-
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.
-
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.
-
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.