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:
- Install the stand-alone version of the WebSphere eXtreme Scale 7.1 product and apply any subsequent fixes.
- Download and extract the WebSphere eXtreme Scale v7.1 trial, which includes the WebSphere eXtreme Scale REST data service.
Start the WebSphere eXtreme Scale sample data grid.
Procedure
- Start the catalog service process. Open a command-line or terminal window and set the JAVA_HOME environment variable:
- export JAVA_HOME=java_home
- set JAVA_HOME=java_home
- cd restservice_home/gettingstarted
- Start the catalog service process.
To start the service without eXtreme Scale security, use the following commands.
- ./runcat.sh
- runcat.bat
To start the service witheXtreme Scale security, use the following commands.
- ./runcat_secure.sh
- runcat_secure.bat
- Start two container server processes. Open another command-line or terminal window and set the JAVA_HOME environment variable:
- export JAVA_HOME=java_home
- set JAVA_HOME=java_home
- cd restservice_home/gettingstarted
- Start a container server process:
To start the server without eXtreme Scale security, use the following commands:
- ./runcontainer.sh container0
- runcontainer.bat container0
To start the server witheXtreme Scale security, use the following commands.
- ./runcontainer_secure.sh container0
- runcontainer_secure.bat container0
- Open another command-line or terminal window and set the JAVA_HOME environment variable:
- export JAVA_HOME=java_home
- set JAVA_HOME=java_home
- cd restservice_home/gettingstarted
- Start a second container server process.
To start the server without eXtreme Scale security, use the following commands.
- ./runcontainer.sh container1
- runcontainer.bat container1
To start the server with eXtreme Scale security, use the following commands.
- ./runcontainer_secure.sh container1
- 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