Show Table of Contents
Chapter 15. The Rapid Stock Market Quickstart
The Rapid Stock Market quickstart demonstrates how JBoss Data Grid's compatibility mode works with a Hot Rod client (to store data) and a HTTP client using REST (to retrieve data). This quickstart is only available in JBoss Data Grid's Remote Client-Server mode and does not use any containers.
The Rapid Stock Market quickstart includes a server-side and a client-side application.
15.1. Build and Run the Rapid Stock Market Quickstart
The Rapid Stock Market quickstart requires the following configuration for the server and client sides of the application.
Procedure 15.1. Rapid Stock Market Quickstart Server-side Configuration
- Build a server module for the JBoss Data Grid Server by packaging a class that is common for the client and server in a jar file:
$ mvn clean package -Pprepare-server-module
Place the new jar file in a directory structure that is similar to the server module. - Install the server module into the server.
- Copy the prepared module to the server:
$ cp -r target/modules ${JDG_SERVER_HOME}/ - Add the new module as a dependency of the
org.infinispan.commonsmodule by adding the following into themodules/system/layers/base/org/infinispan/commons/mainmodule.xmlfile:<module name="org.infinispan.quickstart.compatibility.common"/>
- Build the application:
$ mvn clean package
- Configure the JBoss Data Grid to use the appropriate configuration file.
- Copy the example configuration file for compatibility mode to a location where the JBoss Data Grid Server can locate and use it:
$ cp ${JDG_SERVER_HOME}/docs/examples/configs/standalone-compatibility-mode.xml ${JDG_SERVER_HOME}/standalone/configuration - Remove the
security-domainandauth-methodattributes from therest-connectorelement to disable REST security.
- Start the JBoss Data Grid Server in compatibility mode:
$ ${JDG_SERVER_HOME}/bin/standalone.sh -c standalone-compatibility-mode.xml
Procedure 15.2. Rapid Stock Market Quickstart Client-side Configuration
- In a new command line terminal window, start the client-side application:
mvn exec:java -Pclient
- Use the instructions in the help menu for the client application.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.