第41章 スタンドアロン Business Central の設定および実行
Business Central スタンドアロンの JAR ファイルとして使用して、アプリケーションサーバーにデプロイせずに Business Central を実行できます。設定ファイルのサンプルを使用して、追加設定なしで Business Central スタンドアロン JAR ファイルを実行するか、要件に合わせてサンプルファイルをカスタマイズできます。
この JAR ファイルは、Red Hat Enterprise Linux で実行している場合にのみサポートされます。
前提条件
-
35章Red Hat Process Automation Manager インストールファイルのダウンロード の記載通りに、Red Hat Process Automation Manager 7.10.0 Business Central Standalone (
rhpam-7.10.0-business-central-standalone.jar) ファイルおよび Red Hat Process Automation Manager 7.10.0 Add Ons (rhpam-7.10.0-add-ons.zip) ファイルが、Red Hat Process Automation Manager 7.10 の Software Downloads ページからダウンロードされている。
手順
-
ダウンロードした
rhpam-7.10.0-addons.zipファイルを一時ディレクトリーに展開します。このアーカイブにはrhpam-7.10.0-standalone-sample-configuration.zipファイルが含まれます。 rhpam-7.10.0-standalone-sample-configuration.zipファイルを、rhpam-7.10.0-business-central-standalone.jarファイルが含まれるディレクトリーに展開します。rhpam-7.10.0-standalone-sample-configuration.zipファイルには、以下の設定ファイルのサンプルが含まれています。-
application-roles.properties -
application-users.properties sample-standalone-config.yml設定ファイルで提供されるサンプルデータを使用して
rhpam-7.10.0-business-central-standalone.jarファイルを実行するか、要件に合わせてデータをカスタマイズできます。
-
設定データをカスタマイズするには、以下の手順を実行します。
application-users.propertiesファイルを編集します。管理ユーザーを含めます。また、この Business Central インスタンスが KIE Server の Process Automation Manager コントローラーになる場合は、Process Automation Manager コントローラーユーザーを含めます。以下に例を示します。rhpamAdmin=password1application-roles.propertiesファイルを編集し、application-users.propertiesファイルに含まれるユーザーにロールを割り当てます。以下に例を示します。rhpamAdmin=admin controllerUser=kie-server詳細は、「Red Hat Process Automation Manager ロールおよびユーザー」 を参照してください。
-
sample-standalone-config.yml設定ファイルの内容を確認し、必要に応じて更新します。
Business Central スタンドアロン JAR ファイルを実行するには、以下のコマンドを入力します。
java -jar rhpam-7.10.0-business-central-standalone.jar -s sample-standalone-config.ymlJAR ファイルの実行時にアプリケーションプロパティーを設定するには、コマンドに
-D<PROPERTY>=<VALUE>パラメーターを追加します。ここで、<PROPERTY>はサポートされるアプリケーションプロパティーの名前で、<VALUE>はプロパティーの値になります。java -jar rhpam-7.10.0-business-central-standalone.jar -s sample-standalone-config.yml -D<PROPERTY>=<VALUE> -D<PROPERTY>=<VALUE>たとえば、Business Central を実行し、ユーザー
controllerUserとして KIE Server に接続するには、次のコマンドを実行します。java -jar {PRODUCT_FILE}-{URL_COMPONENT_CENTRAL}-standalone.jar \ -s sample-standalone-config.yml \ -Dorg.kie.server.user=controllerUser -Dorg.kie.server.pwd=controllerUser1234これにより、コンテナーを KIE Server にデプロイできます。詳細は、付録A Business Central システムプロパティー を参照してください。