Show Table of Contents
第16章 Rapid Stock Market クイックスタート
Rapid Stock Market クイックスタートは、JBoss Data Grid の互換性モードが Hot Rod クライアント (データの格納) および REST を使用する HTTP クライアント (データの呼び出し) とどのように動作するかを実演します。このクイックスタートは、JBoss Data Grid のリモートクライアントサーバーモードでのみ使用でき、コンテナーは使用しません。
Rapid Stock Market クイックスタートには、サーバー側とクライアント側のアプリケーションが含まれています。
16.1. Rapid Stock Market クイックスタートのビルドおよび実行
Rapid Stock Market クイックスタートは、アプリケーションのサーバー側およびクライアント側に以下の設定が必要になります。
手順16.1 Rapid Stock Market クイックスタートのサーバー側の設定
- クライアントとサーバーに共通するクラスを jar ファイルにパッケージ化して、JBoss Data Grid のサーバーモジュールをビルドします。
$ mvn clean package -Pprepare-server-module
新しい jar ファイルを、サーバーモジュールに似たディレクトリー構造に置きます。 - サーバーモジュールをサーバーにインストールします。
- 準備したモジュールをサーバーへコピーします。
$ cp -r target/modules ${JDG_SERVER_HOME}/ - 以下を
modules/system/layers/base/org/infinispan/commons/mainmodule.xmlファイルへ追加し、新しいモジュールをorg.infinispan.commonsモジュールの依存関係として追加します。<module name="org.infinispan.quickstart.compatibility.common"/>
- アプリケーションをビルドします。
$ mvn clean package
- 適切な設定ファイルを使用するように JBoss Data Grid を設定します。
- 互換性モードのサンプル設定ファイルを、JBoss Data Grid サーバーが見つけて使用できる場所にコピーします。
$ cp ${JDG_SERVER_HOME}/docs/examples/configs/standalone-compatibility-mode.xml ${JDG_SERVER_HOME}/standalone/configuration rest-connector要素からsecurity-domainおよびauth-method属性を削除し、REST セキュリティーを無効にします。
- JBoss Data Grid サーバーを互換性モードで起動します。
$ ${JDG_SERVER_HOME}/bin/standalone.sh -c standalone-compatibility-mode.xml
手順16.2 Rapid Stock Market クイックスタートのクライアント側の設定
- 別のコマンドラインターミナルウインドウで、サーバー側アプリケーションを起動します。
$ mvn exec:java -Pclient
- クライアントアプリケーションのヘルプメニューにある手順を使用します。

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.