このコンテンツは選択した言語では利用できません。

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

16.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 16.1. Rapid Stock Market Quickstart Server-side Configuration

  1. Navigate to the Root Directory

    Open a command line and navigate to the root directory of this quickstart.
  2. 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
    Copy to Clipboard Toggle word wrap
    Place the new jar file in a directory structure that is similar to the server module.
  3. Install the server module into the server.
    1. Copy the prepared module to the server:
      $ cp -r target/modules ${JDG_SERVER_HOME}/
      Copy to Clipboard Toggle word wrap
    2. Add the new module as a dependency of the org.infinispan.commons module by adding the following into the modules/system/layers/base/org/infinispan/commons/main/module.xml file:
      <module name="org.infinispan.quickstart.compatibility.common"/>
      Copy to Clipboard Toggle word wrap
  4. Build the application:
    $ mvn clean package
    Copy to Clipboard Toggle word wrap
  5. Configure the JBoss Data Grid to use the appropriate configuration file.
    1. 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
      Copy to Clipboard Toggle word wrap
    2. Remove the security-domain and auth-method attributes from the rest-connector element to disable REST security.
  6. Start the JBoss Data Grid Server in compatibility mode:
    $ ${JDG_SERVER_HOME}/bin/standalone.sh -c standalone-compatibility-mode.xml
    Copy to Clipboard Toggle word wrap

Procedure 16.2. Rapid Stock Market Quickstart Client-side Configuration

  1. In a new command line terminal window, start the client-side application:
    $ mvn exec:java -Pclient
    Copy to Clipboard Toggle word wrap
  2. Use the instructions in the help menu for the client application.
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat