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

サンプル区画の追加

Why and when to perform this task

以下の変数を区画化ステートレス・セッション Bean (PSSB) に追加します。

PartitionManager ivRuntime;

以下のインポートも追加する必要があります。

import com.ibm.websphere.wpf.*;

setSessionContext メソッドを以下のように更新します。
public void setSessionContext(javax.ejb.SessionContext ctx) {
		mySessionCtx = ctx;
		try {
			InitialContext ic = new InitialContext();
			ivRuntime = (PartitionManager)ic.lookup(PartitionManager.JNDI_NAME);
			
		}
		catch(Exception e)
		{
			throw new EJBException("Problem initializing PSSB", e);
		}
	}
これによって、区画化に必要なデータ構造の作成に使用される PartitionManager サービスが取得されます。



Related tasks
新規区画化アプリケーションを持つ WSAD 5.1 の使用

Related reference
getPartitions メソッドの更新

Task 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/twpfaddsampparts.html

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