Show Table of Contents
4.2. JBoss EAP での JBoss Data Grid のデプロイ (リモートクライアントサーバーモード)
Red Hat JBoss Data Grid は Red Hat JBoss Enterprise Application Platform 6.x 用のモジュールを提供します。これらのモジュールを使用する場合は、JBoss Data Grid ライブラリーをユーザーのデプロイメントに含める必要がありません。JBoss EAP にすでに含まれている Infinispan モジュールとの競合を防ぐため、JBoss Data Grid モジュールは別のスロット内に置かれ、JBoss Data Grid のバージョン (major.minor) によって識別されます。
注記
JBoss EAP モジュールは JBoss EAP には含まれていません。http://access.redhat.com のカスタマーポータルに移動し、これらのモジュールを Red Hat JBoss Data Grid のダウンロードページからダウンロードします。
JBoss EAP で JBoss Data Grid をデプロイするには、以下の方法の 1 つを用いて JBoss Data Grid モジュールの依存関係をアプリケーションのクラスパス (JBoss EAP デプロイヤー) に追加します。
- 依存関係を
jboss-deployment-structure.xmlファイルに追加します。 - 依存関係を
MANIFEST.MFファイルに追加します。
jboss-deployment-structure.xml ファイルへ依存関係を追加
以下の設定を jboss-deployment-structure.xml ファイルに追加します。
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<dependencies>
<module name="org.infinispan.commons" slot="jdg-6.4" services="export"/>
<module name="org.infinispan.client.hotrod" slot="jdg-6.4" services="export"/>
</dependencies>
</deployment>
</jboss-deployment-structure>注記
jboss-deployment-structure.xml ファイルの詳細は、Red Hat JBoss Enterprise Application Platform のドキュメントを参照してください。
MANIFEST.MF ファイルへ依存関係を追加
次のように依存関係を MANIFEST.MF ファイルに追加します。
例4.2 MANIFEST.MF ファイルの例
Manifest-Version: 1.0 Dependencies: org.infinispan.commons:jdg-6.4 services, org.infinispan.client.hotrod:jdg-6.4 services
最初の行はこの例と同じになります。必要な依存関係に応じて、以下のいずれかをファイルの 2 行目に追加します。
- 基本の Hot Rod クライアント
org.infinispan.commons:jdg-6.4 services, org.infinispan.client.hotrod:jdg-6.4 services
- リモートクエリー機能を持つ Hot Rod クライアント
org.infinispan.commons:jdg-6.4 services, org.infinispan.client.hotrod:jdg-6.4 services, org.infinispan.query.dsl:jdg-6.4 services, org.jboss.remoting3

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.