WebSphere Application Server Version 6.1 Feature Pack for Web Services   
             オペレーティング・システム: AIX , HP-UX, i5/OS, Linux, Solaris, Windows, Windows Vista, z/OS

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

コンソール・セッション有効期限の変更

ここにあげる JACL スクリプトを実行することにより、Integrated Solutions Console のログイン・セッションの有効期限までの使用期間を設定します。

このタスクについて

以下の JACL スクリプトは、Integrated Solutions Console の ログイン・セッションの有効期限までの使用期間を設定する方法の例として役立ちます。 JYTHON など他のスクリプト記述タイプでも使用できます。

プロシージャー

  1. 以下のスクリプトをファイルにコピーします。
    set dep [$AdminConfig getid /Deployment:isclite/]
    set appDep [$AdminConfig list ApplicationDeployment $dep]
    set sesMgmt [$AdminConfig list SessionManager $appDep]
    
    # check if existing sesMgmt there or not, if not then create a new one, if exist then modify it
    if {$sesMgmt == ""} {
         # get applicationConfig to create new SessionManager
         set appConfig [$AdminConfig list ApplicationConfig $appDep]
         if {$appConfig == ""} {
             # create a new one
             set appConfig [$AdminConfig create ApplicationConfig $appDep {}]
             # then create a new SessionManager using new Application Config just created
             set sesMgmt [$AdminConfig create SessionManager $appConfig {}]
         } else {
              #  create new SessionManager using the existing ApplicationConfig
              set sesMgmt [$AdminConfig create SessionManager $appConfig {}]
    
         }
    }  
    
    # get tuningParams config id
    set tuningParams [$AdminConfig showAttribute $sesMgmt tuningParams]
    if {$tuningParams == ""} {
        # create a new tuningParams
        $AdminConfig  create TuningParams  $sesMgmt {{invalidationTimeout <timeout value>}}  
    
    } else {
         #modify the existing one
         $AdminConfig modify $tuningParams {{invalidationTimeout <timeout value>}}  
    
    }
    
    # saving the configuration changes
    $AdminConfig save
  2. このサンプルの 2 つの行にある <timeout value> をセッションの新しい有効期限値に変更します。 この数値により、コンソールが非活動の間にセッションを保持する分数を指定します。
  3. 例えば、ファイル名 timeout.jacl を使用して、任意のディレクトリーにこのファイルを保管します。
  4. <WAS-install>/profiles/<profile_name>/bin ディレクトリーから wsadmin スクリプト・クライアントを開始します
  5. 以下のコマンドを発行します。
    wsadmin -f <path to jacl file>/timeout.jacl
タスク・トピック    

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

最終更新: Jan 21, 2008 4:10:06 PM EST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info/ae/isc/cons_sessionto.html