Chapter 5. Grid configuration 75
Configuring server properties in WebSphere Application Server
environments
WebSphere eXtreme Scale can automatically load the server properties file upon the start of
the container or catalog server in WebSphere Application Server. Create a file called
objectGridServer.properties and place it in a directory that is in the server’s class path.
For example, you can place the file in the properties directory of the WebSphere Application
Server profile. When you restart the WebSphere Application Server process, you can confirm
that the server properties are loaded from the SystemOut.log, as shown in Example 5-3 on
page 75.
Example 5-3 WebSphere eXtreme Scale server properties are loaded
CWOBJ3142I: This WebSphere Application Server is not associated with a WebSphere
eXtreme Scale zone. In order to start the server in a zone, ensure that the
server's node is within a node group whose name begins with the string
ReplicationZone.
CWOBJ0903I: The internal version of WebSphere eXtreme Scale is v4.2.0 (7.1.0.2)
[cf21118.65559].
CWOBJ0913I: Server property files have been loaded:
file:/opt/IBM/WebSphere/AppServer/profiles/sa-w120lnx1-dmgr/properties/objectGridS
erver.properties.
Alternatively, use the following procedure to set a JVM custom property that explicitly
references a server properties file on the file system:
1. In the WebSphere administrative console, go to the actual WebSphere Application Server
process.
2. In the right panel, click Java and Process Management Process Definition Java
Virtual Machine Custom properties.
3. Click New to create a new JVM custom property:
a. Enter objectgrid.server.props as the name for the custom property.
b. Enter <file> as the value, where <file> is the file name of the server properties file.
c. Optionally, provide a description, for example WebSphere eXtreme Scale server
properties file.
d. Click Apply.
4. Save the changes to the master configuration.
5. Restart the WebSphere Application Server process for the changes to take effect.
Configuring server properties in stand-alone environments
WebSphere eXtreme Scale can automatically load the server properties file upon the start of
the container or catalog server. Create a file called objectGridServer.properties, and place
it in a directory that is contained by the server’s class path. For example, you can place the file
in the properties directory of the WebSphere eXtreme Scale product
($WXS_HOME/properties).
Warning: The objectGridServer.properties file will not be loaded if it is within a Java EE
application’s class path; it has to be in the server’s class path.