ページの先頭行へ戻る
Interstage Navigator ServerV9.5.0 セットアップガイド Vol.2
FUJITSU Software

4.6.2 ワークユニットのタイムアウトの設定

ワークユニットのタイムアウトは、以下のような状態で設定時間に達した場合に、Webコンポーネントとの接続を切断します。

以下に、Webコンポーネントのタイムアウトの設定方法について説明します。

設定ファイル

以下の設定ファイルに行います。

[INTERSTAGE]\J2EE\var\deployment\ijserver\[WorkUnit]\apps\[Module]\WEB-INF\web.xml

[FJSVj2ee]/var/deployment/ijserver/[WorkUnit]/apps/[Module]/WEB-INF/web.xml

[INTERSTAGE]:Interstage Application Serverのインストールフォルダ

[WorkUnit]:Webコンポーネントを配備したワークユニット名

[Module]:Webコンポーネントのモジュール名

[FJSVj2ee]:Interstage Application ServerのFJSVj2eeパッケージのインストールディレクトリ(デフォルトでは/opt/FJSVj2ee)

設定内容

web.xmlを開き、以下の太字部分のセション設定を追加します。<servlet-mapping>要素を閉じた後に、<session-config>タグを記載し、以下のように、<session-timeout>と</session-timeout>の間に、設定するタイムアウト時間を指定します。

<!-- ================================================== -->
<!-- ==== Mapping xls to a mime type ==== -->
<!-- ================================================== -->
<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
<!-- ================================================== -->
<!-- ==== Session timeout setting ==== -->
<!-- ================================================== -->
<session-config>
<session-timeout>30</session-timeout>
</session-config>
</web-app>

初期設定時は、30分です。無効な値を設定した場合は、初期設定で動作します。

設定例

タイムアウト時間を40分で設定する場合

<!-- ================================================== -->
<!-- ==== Mapping xls to a mime type ==== -->
<!-- ================================================== -->
<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
<!-- ================================================== -->
<!-- ==== Session timeout setting ==== -->
<!-- ================================================== -->
<session-config>
<session-timeout>40</session-timeout>
</session-config>
</web-app>