GlassFish Serverクラスターの作成
asadminコマンドで、GlassFish Serverクラスターを作成してください。
![]()
asadmin create-cluster ibascl asadmin create-local-instance --cluster ibascl ibasinstance
![]()
![]()
/opt/FJSViaps/glassfish5/glassfish/bin/asadmin create-cluster ibascl /opt/FJSViaps/glassfish5/glassfish/bin/asadmin create-local-instance --cluster ibascl ibasinstance
JVM設定の変更
asadminコマンドでクラスパスおよびシステムプロパティの設定をしてください。
![]()
asadmin set ibascl.java-config.isjee-classpath-suffix=C\:\\Interstage\\BAS\\lib\\apfwibscm.jar;C\:\\Interstage\\BAS\\lib\\apfwibssc.jar asadmin create-system-properties --target ibascl ^ com.fujitsu.interstage.apfw.server.host=192.168.0.10:com.fujitsu.interstage.apfw.server.port=8002:com.fujitsu.interstage.apfw.msync.ins=yes
![]()
![]()
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 ibascl.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 ibascl \ com.fujitsu.interstage.apfw.server.host=192.168.0.10:com.fujitsu.interstage.apfw.server.port=8002:com.fujitsu.interstage.apfw.msync.ins=yes
hostは自ホストのIPアドレスまたはホスト名です。
クライアントアプリケーションの配備
asadminコマンドで以下のWebアプリケーションを配備してください。
![]()
cd C:\Interstage\BAS\sample\acceptance\APL\COBOL\client\symfo\sync asadmin deploy --target ibascl AcceptWEBCBL.war asadmin deploy --target ibascl PaymentWEBCBL.war asadmin deploy --target ibascl StockWEBCBL.war
![]()
cd /opt/FJSVibs/sample/acceptance/APL/COBOL/client/symfo/sync /opt/FJSViaps/glassfish5/glassfish/bin/asadmin deploy --target ibascl AcceptWEBCBL.war /opt/FJSViaps/glassfish5/glassfish/bin/asadmin deploy --target ibascl PaymentWEBCBL.war /opt/FJSViaps/glassfish5/glassfish/bin/asadmin deploy --target ibascl StockWEBCBL.war
![]()
cd /opt/FJSVibs/sample/acceptance/APL/COBOL/client/symfo/sync /opt/FJSViaps/glassfish5/glassfish/bin/asadmin deploy --target ibascl AcceptWEBCBL.war /opt/FJSViaps/glassfish5/glassfish/bin/asadmin deploy --target ibascl PaymentWEBCBL.war /opt/FJSViaps/glassfish5/glassfish/bin/asadmin deploy --target ibascl StockWEBCBL.war
クライアントアプリケーションの起動
asadminコマンドでクライアントアプリケーションを起動してください。
![]()
asadmin start-cluster ibascl
![]()
![]()
/opt/FJSViaps/glassfish5/glassfish/bin/asadmin start-cluster ibascl