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
- 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 server without eXtreme Scale security, use the following commands.
./runcat.sh
runcat.bat
To start the server 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
- Start a container server process.
To start the server without eXtreme Scale security, use the following commands.
- Open a command-line window.
- cd restservice_home/gettingstarted
- To start the server without eXtreme Scale security, use the following commands.
./runcontainer.sh container0
runcontainer.bat container0
- To start the server with eXtreme Scale security, use the following commands.
./runcontainer_secure.sh container0
runcontainer_secure.bat container0
- Start a second container server process.
- Open a command-line window.
- cd restservice_home/gettingstarted
- 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 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