WebSphere Extended Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

パッケージ化: HttpPartitionFilter

Web アプリケーション内のサーブレットから区画にアクセスする場合、 そのサーブレットでは HttpPartitionFilter を使用する必要があります。 このフィルターにより、特定の区画に送られる HTTP 要求が、その区画を ホストしているアプリケーション・インスタンスに正しく配信されます。 区画の移動時には、小さな時間枠が生じます。 その移動情報がターゲット・サーバーから ODR に伝搬されるまでにわずかな遅延が発生し、 オンデマンド・ルーター (ODR) の区画対サーバーのマッピングが一時的に古いものになるからです。 この場合でも、サーブレット・フィルターの働きにより、間違ったアプリケーション・インスタンスに要求が送付されることは ありません。サーブレット・フィルターには、不整合を検出したうえで、適切な ターゲット・サーバーに要求をリダイレクトする機能があります。

処理チェーンに HttpPartitionFilter を挿入するには、Web モジュール・アーカイブ (WAR ファイル) の web.xml デプロイメント記述子に このフィルターを宣言し、マップする必要があります。 この例を次に示します。
<filter>
	<filter-name>HttpPartitionFilter</filter-name>
	<display-name>HttpPartitionFilter</display-name>
	<filter-class>com.ibm.websphere.http.wpf.HttpPartitionFilter</filter-class>
</filter>
<filter-mapping>
	<filter-name>HttpPartitionFilter</filter-name>
	<url-pattern>/*</url-pattern>
</filter-mapping>



Related concepts
HTTP 区画

Reference topic    

Terms of Use | Feedback Last updated: Mar 20, 2006 12:35:11 PM EST
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r0/index.jsp?topic=?topic=/com.ibm.websphere.xd.doc/info/WPF51/rwpfHttpPartitionFilter.html

© Copyright IBM 2005, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)