第49章 IBM WebSphere Application Server へのヘッドレス Process Automation Manager コントローラーのインストールおよび実行
KIE Server REST API または Java Client API を使用して KIE Server に接続するには、IBM WebSphere Application Server にヘッドレス Process Automation Manager コントローラーをインストールします。ヘッドレス Process Automation Manager コントローラーは、一元化された方法で KIE Server 設定を管理するため、このコントローラーを使用してコンテナーの作成および維持を行い、サーバーレベルのタスクを実行できます。
実稼働環境で最適な結果を得るには、KIE Server とヘッドレス Process Automation Manager コントローラーを別のサーバーにインストールします。開発環境の場合は、KIE Server とヘッドレス Process Automation Manager コントローラーを同じサーバーにインストールします。
前提条件
- 47章KIE Server への IBM WebSphere Application Server の設定 の説明どおりに IBM WebSphere Application Server インスタンスを設定している。
- KIE Server が IBM WebSphere Application Server インスタンスにインストールされている。
- インストールを完了するのに必要なユーザーパーミッションがある。
手順
Red Hat カスタマーポータルの Software Downloads ページに移動し (ログインが必要)、ドロップダウンオプションから製品およびバージョンを選択します。
- 製品: Process Automation Manager
- Version: 7.12
- Red Hat Process Automation Manager 7.12.0 Add-Ons をダウンロードします。
-
ダウンロードした
rhpam-7.12.0-add-ons.zip
ファイルを一時ディレクトリーに展開します。 -
rhpam-7.12.0-add-ons.zip
ファイルを一時ディレクトリーに展開します。以下の例では、この名前をTEMP_DIR
とします。 -
rhpam-7.12.0-add-ons/rhpam-7.12.0-controller-ee7.zip
ファイルを展開します。 controller.war
ディレクトリーを再パッケージ化します。-
TEMP_DIR/rhpam-7.12.0-add-ons/rhpam-7.12.0-controller-ee7/controller.war
ディレクトリーに移動します。 -
TEMP_DIR/rhpam-7.12.0-add-ons/rhpam-7.12.0-controller-ee7/controller.war
ディレクトリーの内容を選択して、controller.zip
ファイルを作成します。 -
controller.zip
の名前をcontroller.war
に変更します。これは、ヘッドレス Process Automation Manager コントローラーをデプロイするのに使用するファイルです。 -
必要に応じて、新しい
controller.war
ファイルを、デプロイしやすい場所にコピーします。
-
- WebSphere 統合ソリューションコンソールで、Applications → Application Types → WebSphere Enterprise Applications の順に移動します。
- Install をクリックします。
-
再パッケージ化した
controller.war
ファイルに移動し、選択してアップロードします。 Fast Path を選択し、Next をクリックします。
Install New Application ウィザードが開きます。
-
Application Name を
controller
に変更し、Next をクリックします。 - 要件に合わせて ヘッドレス Process Automation 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.REQUEST
JNDI 名を入力します。 - Map Virtual Hosts for Web Modules セクションでは、デフォルト値をそのままにして、Next をクリックします。
-
コンテキストルートを
controller
に設定します。 - Metadata for Modules セクションで、デフォルト値をそのままにして Next をクリックします。
- Finish をクリックしてヘッドレス Process Automation Manager コントローラーをインストールし、Save をクリックしてプライマリー設定への変更を保存します。
49.1. ヘッドレス Process Automation Manager コントローラーへのクラ出力ディングの設定
ヘッドレス Process Automation 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 に変更します。
- 変更をプライマリー設定に保存します。