Product overview > Tutorials, examples, and samples > REST data services sample and tutorial > Enable the REST data service



Start a data grid for REST data services in WAS

Follow these steps to start a stand-alone WebSphere eXtreme Scale REST service sample data grid for a WebSphere eXtreme Scale deployment that is integrated with WAS. Although WebSphere eXtreme Scale is integrated with WAS, these steps start a stand-alone WebSphere eXtreme Scale catalog service process and container.


Before you begin

Install the WebSphere eXtreme Scale v7.1 product into a WAS v7.0.0.5 or later installation directory with security disabled. Augment at least one Application Server profile.

Start the WebSphere eXtreme Scale sample data grid.


Procedure

  1. Start the catalog service process. Open a command-line or terminal window and set the JAVA_HOME environment variable:

    • [Linux][Unix] export JAVA_HOME=java_home

    • [Windows] set JAVA_HOME=java_home

    cd restservice_home/gettingstarted

  2. Start the catalog service process.

    To start the server without eXtreme Scale security, use the following commands.

    • [Linux][Unix] ./runcat.sh

    • [Windows] runcat.bat

    To start the server witheXtreme Scale security, use the following commands.

    • [Linux][Unix] ./runcat_secure.sh

    • [Windows] runcat_secure.bat

  3. Start two container server processes. Open another command-line or terminal window and set the JAVA_HOME environment variable:

    • [Linux][Unix] export JAVA_HOME=java_home

    • [Windows] set JAVA_HOME=java_home

  4. Start a container server process.

    To start the server without eXtreme Scale security, use the following commands.

    1. Open a command-line window.

    2. cd restservice_home/gettingstarted

    3. To start the server without eXtreme Scale security, use the following commands.

      • [Linux][Unix] ./runcontainer.sh container0

      • [Windows] runcontainer.bat container0

    4. To start the server with eXtreme Scale security, use the following commands.

      • [Linux][Unix] ./runcontainer_secure.sh container0

      • [Windows] runcontainer_secure.bat container0

  5. Start a second container server process.

    1. Open a command-line window.

    2. cd restservice_home/gettingstarted

    3. To start the server without eXtreme Scale security, use the following commands.

      • [Linux][Unix] ./runcontainer.sh container1

      • [Windows] runcontainer.bat container1

    4. To start the server with eXtreme Scale security, use the following commands.

      • [Linux][Unix] ./runcontainer_secure.sh container1

      • [Windows] runcontainer_secure.bat container1


Results

Wait until the container servers are ready before proceeding with the next steps. The container servers are ready when the following message is displayed:

CWOBJ1001I: ObjectGrid Server container_name is ready to process requests. Where container_name is the name of the container that was started in the previous step.


Parent topic:

Enable the REST data service


Related concepts

Scalable data model in eXtreme Scale

Retrive and updating data with REST


Related tasks

Start a stand-alone data grid for REST data services