ページの先頭行へ戻る
Interstage Application Server V13.0.0 GlassFish 設計・構築・運用ガイド
FUJITSU Software

10.15.8 add-application-refサブコマンド

名前

add-application-ref - 振り分け先のアプリケーションの追加

形式

wscadmin add-application-ref --webserver web_server_name --target target application_name

機能説明

WebサーバーコネクタのGlassFish Serverクラスター設定に、振り分け先のアプリケーションを追加します。

オプション

オプション名

簡略名

説明

--webserver

なし

設定を行うWebサーバー名を指定します。

--target

なし

設定対象のGlassFish Serverクラスター名、またはDASのインスタンス名(server)を指定します。

オペランド

オペランド名

省略

説明

application_name

不可

GlassFish Serverクラスターに配備されているアプリケーションのコンテキストルートを指定します。ルートコンテキストの場合、“/”を指定します。

戻り値

0: 正常終了
1: 異常終了

注意事項

WebサーバーとGlassFish Serverクラスターを同一のマシンで運用する場合は、asadminコマンドのcreate-web-server-refサブコマンドを使用してください。

使用例

以下のように実行します。

C:\Interstage\F3FMwsc\bin\wscadmin add-application-ref --webserver FJapache --target Cluster001 SampleAppr1

Command add-application-ref executed successfully.

/opt/FJSVwsc/bin/wscadmin add-application-ref --webserver FJapache --target Cluster001 SampleAppr1

Command add-application-ref executed successfully.