WebSphere Application Server Network Deployment for i5/OS, Version 6.1   
             オペレーティング・システム: i5/OS

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

例: com.ibm.websphere.DBConnectionListener.java を使用したサーブレット・コンテキスト・リスナーの作成

次の例は、サーブレット・コンテキスト・リスナーの作成方法を示したものです。

package com.ibm.websphere;

import java.io.*;
import javax.servlet.*;

public class DBConnectionListener implements ServletContextListener
{
     // implement the required context init method
    void contextInitialized(ServletContextEvent sce)
    {
    }

     // implement the required context destroy method
    void contextDestroyed(ServletContextEvent sce)
    {
    }
}



関連概念
アプリケーション・ライフ・サイクルのリスナーとイベント
関連タスク
WebSphere Application Server の拡張機能を使用したサーブレットの開発
関連資料
サーブレット・コンテキストおよびセッション変更用のリスナー・クラス
Web アプリケーション: 学習用リソース
参照トピック    

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

最終更新: Jan 21, 2008 8:28:52 PM EST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.iseries.doc/info/iseriesnd/ae/xweb_sctxl.html