To run the sample client application, you must start a
catalog server and a container server.
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.
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.
- 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 .
- Run the following script to start a catalog service process
on localhost:
The catalog service process runs in the current terminal window.
You can also start the catalog service with the
startOgServer command. Run the
startOgServer from the
wxs_install_root/ObjectGrid/bin directory:
![[Unix]](./icons/ngunix.gif)
./startOgServer.sh cs0 -catalogServiceEndPoints cs0:localhost:6600:6601
-listenerPort 2809
startOgServer.bat cs0 -catalogServiceEndPoints cs0:localhost:6600:6601
-listenerPort 2809
- Open another terminal session or command-line window, and
run the following command to start a container server instance:
![[Unix]](./icons/ngunix.gif)
./runcontainer.sh server0
runcontainer.bat server0
The container server runs in the current terminal window.
If you want to start more container server instances to support replication,
you can repeat this step with a different server name.
You can
also start container servers with the
startOgServer command. Run the
startOgServer command from the
wxs_install_root/ObjectGrid/bin directory:
![[Unix]](./icons/ngunix.gif)
./startOgServer.sh c0 -catalogServiceEndPoints localhost:2809
-objectgridFile ../gettingstarted/xml/objectgrid.xml -deploymentPolicyFile
../gettingstarted/xml/deployment.xml
startOgServer.bat c0 -catalogServiceEndPoints localhost:2809
-objectgridFile ..\gettingstarted\xml\objectgrid.xml -deploymentPolicyFile
..\gettingstarted\xml\deployment.xml