Show Table of Contents
4.5. WebLogic サーバーでの Web アプリケーションのデプロイ (リモートクライアントサーバーモード)
Red Hat JBoss Data Grid は WebLogic 12c アプリケーションサーバーをリモートクライアントサーバーモードでサポートします。 以下の手順は、WebLogic サーバーで Web アプリケーションをデプロイする方法になります。
手順4.2 WebLogic サーバーでの Web アプリケーションのデプロイ
- WebLogic サーバーをインストールするには http://docs.oracle.com/cd/E24329_01/doc.1211/e24492/toc.htm を参照してください。
- リモートクライアントサーバーモードの JBoss Data Grid を設定し、キャッシュ、キャッシュコンテナー、およびエンドポイント設定を定義します。設定後、JBoss Data Grid を起動し、Hot Rod エンドポイントが設定されたポートでリッスンしていることを確認します。リモートクライアントサーバーモードの JBoss Data Grid の設定に関する詳細は、7章Red Hat JBoss Data Grid のリモートクライアントサーバーモードでの実行を参照してください。
- Web アプリケーションを作成し、Maven が使用される場合は
infinispan-remoteライブラリーを依存関係として追加します。 - 以下の要素が含まれる
weblogic.xmlデプロイメント記述子を作成します。<?xml version="1.0" encoding="UTF-8"?> <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd"> <container-descriptor> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor> </weblogic-web-app>注記
prefer-web-inf-classesクラスは、WEB-INF/libフォルダーにあるライブラリーおよびクラスが WebLogic サーバーにバンドルされたデフォルトのライブラリーよりも優先されることを示します。たとえば、WebLogic サーバーのcommons-pool.jarファイルのバージョンは 1.4 で、クラスローダーによって自動的にロードされますが、Hot Rod クライアントはこのライブラリーの新しいバージョンを使用します。 - デプロイメント記述子ファイルを
WEB-INFフォルダーに追加します。 infinispan-remote依存関係がpom.xmlファイルに追加されたことを確認した後、Maven プラグインを使用して Web アーカイブを作成します。この代わりに、手動で Web アーカイブを作成し、手動でライブラリーに追加することもできます。- WebLogic サーバーでアプリケーションをデプロイし、Web アプリケーション内に埋め込まれた Hot Rod クライアントがリモート JBoss Data Grid サーバーに接続することを確認します。

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.