第47章 IBM WebSphere Application Server へのヘッドレス Decision Manager コントローラーのインストールおよび実行
KIE Server REST API または Java Client API を使用して KIE Server に接続するには、IBM WebSphere Application Server にヘッドレス Decision Manager コントローラーをインストールします。ヘッドレス Decision Manager コントローラーは、一元化された方法で KIE Server 設定を管理するため、このコントローラーを使用してコンテナーの作成および維持を行い、他のサーバーレベルのタスクを実行することができます。
実稼働環境で最適な結果を得るには、KIE Server とヘッドレス Decision Manager コントローラーを別のサーバーにインストールします。開発環境の場合は、KIE Server とヘッドレス Decision Manager コントローラーを同じサーバーにインストールします。
前提条件
- 45章KIE Server への IBM WebSphere Application Server の設定 の説明どおりに IBM WebSphere Application Server インスタンスを設定している。
- KIE Server が IBM WebSphere Application Server インスタンスにインストールされている。
- インストールを完了するのに必要なユーザーパーミッションがある。
手順
Red Hat カスタマーポータルの Software Downloads ページに移動し (ログインが必要)、ドロップダウンオプションから製品およびバージョンを選択します。
- Product: Decision Manager
- バージョン: 7.10
- Red Hat Decision Manager 7.10.0 Add-Ons をダウンロードします。
-
ダウンロードした
rhdm-7.10.0-add-ons.zipファイルを一時ディレクトリーに展開します。 -
rhdm-7.10.0-add-ons.zipファイルを一時ディレクトリーに展開します。以下の例では、この名前をTEMP_DIRとします。 -
rhdm-7.10.0-add-ons/rhdm-7.10.0-controller-ee7.zipファイルを展開します。 controller.warディレクトリーを再パッケージ化します。-
TEMP_DIR/rhdm-7.10.0-add-ons/rhdm-7.10.0-controller-ee7/controller.warディレクトリーに移動します。 -
TEMP_DIR/rhdm-7.10.0-add-ons/rhdm-7.10.0-controller-ee7/controller.warディレクトリーのコンテンツを選択して、controller.zipファイルを作成します。 -
controller.zipの名前をcontroller.warに変更します。このファイルを使用して、ヘッドレス Decision Manager コントローラーをデプロイします。 -
必要に応じて、新しい
controller.warファイルを、デプロイしやすい場所にコピーします。
-
-
WebSphere 統合ソリューションコンソールで、Applications
Application Types WebSphere Enterprise Applications の順に移動します。 - Install をクリックします。
-
再パッケージ化した
controller.warファイルに移動し、選択してアップロードします。 Fast Path を選択し、Next をクリックします。
Install New Application ウィザードが開きます。
-
Application Name を
controllerに変更し、Next をクリックします。 - 要件に合わせて ヘッドレス Decision Manager コントローラーモジュールをサーバーにマッピングし、Next をクリックします。
-
Bind Listeners for Message-Driven Beans の場合は 、両 Bean に Activation Specification を選択し、Target Resource JNDI Name フィールドに
jms/activation/KIE.SERVER.REQUESTを入力し、KIE.SERVER.REQUEST接続ファクトリーのjms/cf/KIE.SERVER.REQUESTJNDI 名を入力します。 - Map Virtual Hosts for Web Modules セクションでは、デフォルト値をそのままにして、Next をクリックします。
-
コンテキストルートを
controllerに設定します。 - Metadata for Modules セクションで、デフォルト値をそのままにして Next をクリックします。
- Finish をクリックしてヘッドレス Decision Manager コントローラーをインストールし、Save をクリックしてプライマリー設定への変更を保存します。
47.1. ヘッドレス Decision Manager コントローラーへのクラ出力ディングの設定 リンクのコピーリンクがクリップボードにコピーされました!
ヘッドレス Decision Manager コントローラーをインストールしたら、親クラスを最後に読み込むように、KIE Server クラ出力ディングを設定する必要があります。
手順
-
Applications
Application Types WebSphere Enterprise Applications に移動し、 kie-serverをクリックします。 - 左側の Detail Properties の見出しにある Class Loading and Update Detection をクリックします。
- プロパティーで、Class Loader Order を Classes loaded with local class loader first (parent last) に、WAR Class Loader Policy を Single class loader for application に変更します。
- 変更をプライマリー設定に保存します。