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



Start a stand-alone data grid for REST data services

Follow these steps to start the WebSphere eXtreme Scale REST service sample data grid for a stand-alone eXtreme Scale deployment.


Before you begin

Install the WebSphere eXtreme Scale Trial or full product:

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

  2. cd restservice_home/gettingstarted

  3. Start the catalog service process.

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

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

    • [Windows] runcat.bat

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

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

    • [Windows] runcat_secure.bat

  4. 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

  5. cd restservice_home/gettingstarted

  6. Start a container server process:

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

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

    • [Windows] runcontainer.bat container0

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

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

    • [Windows] runcontainer_secure.bat container0

  7. 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

  8. cd restservice_home/gettingstarted

  9. Start a second container server process.

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

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

    • [Windows] runcontainer.bat container1

    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 eXtreme Scale containers are ready before proceeding with the next steps. The container servers are ready when the following message is displayed in the terminal window:

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


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 data grid for REST data services in WAS