To run the sample client application, you must start a
catalog server and a container server.
Before you begin
The
env.sh|bat
script is called by the
other scripts to set needed environment variables. Normally you do
not need to change this script.
About this task
To run the application, you must first start the catalog
service process. The catalog service is the control center of the
data grid. The catalog service tracks the locations of container servers,
and controls the placement of data to host container servers. After
the catalog service starts, you can start the container servers, which
store the application data for the data grid. To store multiple copies
of the data, you can start multiple container servers. When all the
servers are started, you can run the client application to insert,
update, remove, and get data from the data grid.
Procedure
- Open a terminal session or command-line window.
- In a terminal session or command line window, navigate
to the wxs_install_root/ObjectGrid/gettingstarted directory of your server installation.
- Run the following script to start a catalog service process
on localhost:
- Open another terminal session or command-line window, and
run the following command to start a container server instance:
- Optional: Instead of starting the catalog and container servers separately,
you can use the runall script to start a catalog
server, container server, and Java™ sample client application in the same Java virtual machine.
Restriction: Because the runall script runs embedded container servers, you cannot use the monitoring
console to monitor your environment. Statistics are not collected
for the container servers.