<WAS_HOME>\launchclient <WAS_HOME>\profiles\[APP_SERVER_PROFILE]\installedApps\Cell\ WPFKeyBasedPartitionSample.ear -CCproviderURL=corbaloc::localhost:9813 -addPartition PKMyNewOneThe 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 optionThe 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.
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_3In the command output, the partition PKMyNewOne now exists. At this point, the partition can receive transactions if you run the demonstration client without parameters.