< Previous | Next >

Getting started tutorial lesson 3.1: Running the Java getting started sample client application

Use the following steps to run a Java client to interact with the data grid.

Edit the wxs_install_root/ObjectGrid/gettingstarted/env.bat|sh file. This file is invoked by the client automatically. The file contains the following information:
SET CATALOGSERVER_HOST=<xc10_hostname> 
SET CATALOGSERVER_PORT=2809
SET GRID_NAME=my_simple_data_grid 
SET MAP_NAME=my_map.P

To connect to a data grid on the appliance, you must update the CATALOGSERVER_HOST and CATALOGSERVER_PORT variables. The catalog server to specify is displayed on the user interface page for the simple data grid that you created. Click Data Grid > Simple Data Grid > my_simple_data_grid and use the values that are in the Catalog services field. The value of the GRID_NAME property must match the name of the data grid that you created. The MAP_NAME property creates a map with no time to live (TTL) setting and pessimistic locking. For more information about naming dynamic maps, see Dynamic map configuration options.

Lesson checkpoint

Lessons learned

In this lesson, you learned:
  • How to run the Java sample client application to insert, get, update, and delete data from the data grid.
< Previous | Next >