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

区画の動的追加

Why and when to perform this task

区画は動的に追加および除去することができます。次のコマンドは、この機能を示しています。

<WAS_HOME>¥launchclient <WAS_HOME>¥profiles¥[APP_SERVER_PROFILE]¥installedApps¥Cell¥

WPFKeyBasedPartitionSample.ear -CCproviderURL=corbaloc::localhost:9813
-addPartition PKMyNewOne

結果は以下のようになります。
IBM WebSphere Application Server, Release 5.1
J2EE Application Client Tool
Copyright IBM Corp., 1997-2003
WSCL0012I: Processing command line arguments.
WSCL0013I: Initializing the J2EE Application Client Environment.
WSCL0035I: Initialization of the J2EE Application Client Environment
has completed.
WSCL0014I: Invoking the Application Client class
com.ibm.websphere.wpf.client.WPFKeyBasedPartitionClient
Adding partition PKMyNewOne
Partitions added. Since there is a delay when a partition
activates, to run the client against the newly added partition,
run launchClient again
without the -addPartition option
アプリケーションはこの機能を提供するようにプログラムされている必要があります。これは 一般的な意味では wpfadmin が提供する機能ではありません。プログラマーは、サンプル・アプリケーションを参考にして、 区画の動的追加および除去をサポートします。

上の注意で述べられているのは、 ランタイム・ビューに対する区画の追加および活動化は即時には発生しない場合がある (ただし、一般的には非常に高速である) ということです。 そのため、大規模なクラスター構成では、次のコマンドが即時に反映されない場合があります。

listActive の出力は、以下のようになります。

wsadmin -lang jython -f wpfadmin.pty listActive

WASX7209I: Connected to process "Deployment Manager" 
on node CellManager using SOAP connector;  
The type of process is: DeploymentManager

WPFC0050I: Application WPFKeyBasedPartitionSample, 
Partition PKMyNewOne: 
Server Cell¥NodeA¥cluster_member_3
WPFC0050I: Application WPFKeyBasedPartitionSample, 
Partition PK000010: 
Server Cell¥NodeA¥cluster_member_3
WPFC0050I: Application WPFKeyBasedPartitionSample, 
Partition PK000009:
Server Cell¥NodeA¥cluster_member_3
WPFC0050I: Application WPFKeyBasedPartitionSample, 
Partition PK000008: 
Server Cell¥NodeA¥cluster_member_3
WPFC0050I: Application WPFKeyBasedPartitionSample, 
Partition PK000007: 
Server Cell¥NodeA¥cluster_member_3
WPFC0050I: Application WPFKeyBasedPartitionSample, 
Partition PK000006: 
Server Cell¥NodeA¥cluster_member_3
WPFC0050I: Application WPFKeyBasedPartitionSample, 
Partition PK000005: 
Server Cell¥NodeA¥cluster_member_3
WPFC0050I: Application WPFKeyBasedPartitionSample, 
Partition PK000004: 
Server Cell¥NodeA¥cluster_member_3
WPFC0050I: Application WPFKeyBasedPartitionSample, 
Partition PK000003: 
Server Cell¥NodeA¥cluster_member_3
WPFC0050I: Application WPFKeyBasedPartitionSample, 
Partition PK000002: 
Server Cell¥NodeA¥cluster_member_3
WPFC0050I: Application WPFKeyBasedPartitionSample, 
Partition PK000001: 
Server Cell¥NodeA¥cluster_member_3

コマンド出力では、区画 PKMyNewOne は現在存在します。この時点で、パラメーターを指定せずにデモンストレーション・クライアントを実行した場合、区画はトランザクションを受け取ることができます。



Related tasks
区画化機能の操作の実行

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/twpfaddparts.html

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