WebSphere Application Server - Express, Version 6.1   
             オペレーティング・システム: AIX , HP-UX, Linux, Solaris, Windows, Windows Vista

             目次と検索結果のパーソナライズ化

Integrated Solutions Console 内でデプロイされたコンソール・モジュールのクラス・ローダー配列の変更

この JACL スクリプトを実行して、Integrated Solutions Console 内でデプロイされたコンソール・モジュールのクラス・ローダー配列を変更します。

このタスクについて

以下の JACL スクリプトは、Integrated Solutions Console 内でデプロイされたコンソール・モジュールのクラス・ローダー配列を変更する方法の例として役立ちます。 JYTHON など他のスクリプト記述タイプでも使用できます。

プロシージャー

  1. 以下のスクリプトをファイルにコピーします。
    set app [$AdminConfig getid /Deployment:isclite/]
    set webModules [$AdminConfig list WebModuleDeployment $app]
     
    foreach webModule $webModules {
         set uri [$AdminConfig showAttribute  $webModule uri]
         if {$uri  == "<WAR_NAME>"} {
             #modify the classloader for <WAR_NAME>
             set cl [$AdminConfig list Classloader $webModule]
             # check if the classloader exist 
             if {$cl == ""} {
                    # create a new one with the appropriate mode
                    $AdminConfig create Classloader $webModule  {{mode <MODE>}}
             } else {
                  #modify the existing one
                 $AdminConfig modify $cl  {{mode <MODE>}}
             }
         }
    }
    
    # save the configuration change
    $AdminConfig save
  2. このサンプルの 2 行の <WAR_NAME> を、変更したいクラス・ローダー配列の Integrated Solutions Console 内でデプロイされたコンソール・モジュール・ファイルの名前に変更します。
  3. このサンプルの 2 つの行にある <MODE> を、必要に応じて PARENT_LAST または PARENT_FIRST に変更します。
  4. 例えば、ファイル名 classloaderorder.jacl を使用して任意のディレクトリーにこのファイルを保管します。
  5. <WAS-install>/profiles/<profile_name>/bin ディレクトリーから wsadmin スクリプト・クライアントを開始します
  6. 以下のコマンドを発行します。
    wsadmin -f <path to jacl file>/classloader.jacl
タスク・トピック    

ご利用条件 | フィードバック

最終更新: Jan 21, 2008 6:25:35 PM EST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/isc/cons_claslodr.html