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

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

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

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

6.1.2.1 GlassFish Serverクラスターの作成

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

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

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

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

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

6.1.2.2 JVM設定の変更

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

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

$ LD_LIBRARY_PATH=/opt/FJSVibs/lib:$LD_LIBRARY_PATH
$ export LD_LIBRARY_PATH
$ /opt/FJSViaps/glassfish5/glassfish/bin/asadmin stop-domain
$ /opt/FJSViaps/glassfish5/glassfish/bin/asadmin start-domain
$ /opt/FJSViaps/glassfish5/glassfish/bin/asadmin set COBOLSAMPLECL.java-config.isjee-classpath-suffix=/opt/FJSVibs/lib/apfwibscm.jar:/opt/FJSVibs/lib/apfwibssc.jar
$ /opt/FJSViaps/glassfish5/glassfish/bin/asadmin create-system-properties --target COBOLSAMPLECL \
com.fujitsu.interstage.apfw.server.host=localhost: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=localhost:com.fujitsu.interstage.apfw.server.port=8002:com.fujitsu.interstage.apfw.msync.ins=yes
>

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

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

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

$ /opt/FJSViaps/glassfish5/glassfish/bin/asadmin deploy --target COBOLSAMPLECL AcceptWEBCBL.war
$ /opt/FJSViaps/glassfish5/glassfish/bin/asadmin deploy --target COBOLSAMPLECL PaymentWEBCBL.war
$ /opt/FJSViaps/glassfish5/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
>