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


Adding a partition dynamically

About this task

You can add and remove partitions dynamically. The following command shows this function:
<WAS_HOME>\launchclient <WAS_HOME>\profiles\[APP_SERVER_PROFILE]\installedApps\Cell\
WPFKeyBasedPartitionSample.ear -CCproviderURL=corbaloc::localhost:9813 
-addPartition PKMyNewOne
The result is similar to:
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
The application must be programmed to offer this function. This is not a feature wpfadmin offers in a generic sense. For programmers, consult the sample application to support dynamic addition and removal of partitions.

The warning above mentions that the adding and activating the partitions to the runtime view might not happen immediately (and will be generally very fast). Therefore, the next command might not reflect it immediately in a large cluster configuration.

The output of the listActive would show as follows:

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

In the command output, the partition PKMyNewOne now exists. At this point, the partition can receive transactions if you run the demonstration client without parameters.



Related tasks
Running operations for the partitioning facility
Task topic    

Terms of Use | Feedback

Last updated: Oct 16, 2009 11:11:31 AM EDT
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r0/index.jsp?topic=/com.ibm.websphere.xd.doc/info/WPF51/twpfaddparts.html