Red Hat Training
A Red Hat training course is available for Red Hat JBoss Operations Network
18.8. グループメンバーへのアプリケーションのデプロイ: deploy.js
他のスクリプトのように使用情報とグループ検索を設定し、に記載のデプロイメントスクリプトを使用し 15章例: リソースデプロイメントのスクリプト作成(JBoss EAP 5) ます。
スクリプトは、グループ名に、ファイルのアップロードに使用するパラメーターを 2 つ使用します。
簡単な改善として、JBoss サーバーを 「JBoss ON グループおよびインベントリーの確認」 停止し、コンテンツをアップロードして再起動します。代わりに、サーバーが最初に実行していることを確認してからコンテンツをアップロードします。
// we need check to see if the given server is up and running var avail = AvailabilityManager.getCurrentAvailabilityForResource(server.id); // unfortunately, we can only proceed with deployment if the server is running. Why? if( avail.availabilityType.toString() == "DOWN" ) { println(" Server is DOWN. Please first start the server and run this script again!"); println(""); continue; }