ページの先頭行へ戻る
Interstage Business Application Server チュートリアルガイド
FUJITSU Software

6.1.3 クライアントアプリケーションの配備

サーバ上にIJServerクラスタを作成し、クライアントアプリケーションを配備する手順について説明します。

IJServerクラスタの作成、およびIJServerクラスタへの配備には、asadminコマンドを使用します。

6.1.3.1 IJServerクラスタの作成

asadminコマンドを使用してクライアントアプリケーションを配備するためのIJServerクラスタを作成します。

テスト環境に“ibas”ユーザでログインして、以下のコマンドを実行してください。

$ /opt/FJSVisje7/glassfish/bin/asadmin create-cluster COBOLSAMPLECL
$ /opt/FJSVisje7/glassfish/bin/asadmin create-local-instance --cluster COBOLSAMPLECL COBOLSAMPLE
$ 

テスト環境のコマンドプロンプトから、以下のコマンドを実行してください。

> asadmin create-cluster COBOLSAMPLECL
> asadmin create-local-instance --cluster COBOLSAMPLECL COBOLSAMPLE
>

6.1.3.2 JVM設定の変更

クラスパスの設定とVMオプションの設定を行います。

テスト環境に“ibas”ユーザでログインして、以下のコマンドを実行してください。

$ LD_LIBRARY_PATH=/opt/FJSVibs/lib:$LD_LIBRARY_PATH
$ export LD_LIBRARY_PATH
$ /opt/FJSVisje7/glassfish/bin/asadmin stop-domain
$ /opt/FJSVisje7/glassfish/bin/asadmin start-domain
$ /opt/FJSVisje7/glassfish/bin/asadmin set COBOLSAMPLECL.java-config.isjee-classpath-suffix=/opt/FJSVibs/lib/apfwibscm.jar:/opt/FJSVibs/lib/apfwibssc.jar
$ /opt/FJSVisje7/glassfish/bin/asadmin create-system-properties --target COBOLSAMPLECL \
com.fujitsu.interstage.apfw.server.host=192.168.0.10:com.fujitsu.interstage.apfw.server.port=8002:com.fujitsu.interstage.apfw.msync.ins=yes
$ 

テスト環境のコマンドプロンプトから、以下のコマンドを実行してください。

> asadmin set COBOLSAMPLECL.java-config.isjee-classpath-suffix=C\:\\Interstage\\BAS\\lib\\apfwibscm.jar;C\:\\Interstage\\BAS\\lib\\apfwibssc.jar
> asadmin create-system-properties --target COBOLSAMPLECL ^
com.fujitsu.interstage.apfw.server.host=192.168.0.10:com.fujitsu.interstage.apfw.server.port=8002:com.fujitsu.interstage.apfw.msync.ins=yes
>

6.1.3.3 Webアプリケーションの配備

asadminコマンドを使用して、IJServerクラスタにクライアントアプリケーション用の配備ファイルを配備します。

テスト環境に“ibas”ユーザでログインして、以下のコマンドを実行してください。

$ /opt/FJSVisje7/glassfish/bin/asadmin deploy --target COBOLSAMPLECL AcceptWEBCBL.war
$ /opt/FJSVisje7/glassfish/bin/asadmin deploy --target COBOLSAMPLECL PaymentWEBCBL.war
$ /opt/FJSVisje7/glassfish/bin/asadmin deploy --target COBOLSAMPLECL StockWEBCBL.war
$ 

テスト環境のコマンドプロンプトから、以下のコマンドを実行してください。

> asadmin deploy --target COBOLSAMPLECL AcceptWEBCBL.war
> asadmin deploy --target COBOLSAMPLECL PaymentWEBCBL.war
> asadmin deploy --target COBOLSAMPLECL StockWEBCBL.war
>