Program guide > (deprecated) Partitioning facility > Partitions
Deprecated feature: The partitioning facility (WPF) feature is deprecated. You can configure partitioning with WebSphere eXtreme Scale.
A partition is created when the Java™ 2 Platform Enterprise Edition (J2EE) application starts or through the PartitionManager interface after the start completes. During the application startup, through the PartitionManager interface in the partitioning facility (WPF) framework, the application programmer implements an API that dynamically creates the partitions by name. The partitions that are created can be either hardcoded strings, for example P001, or strings from the result of an external input, such as a database.
A more complete example is provided in the programming guide, but creating a partition in the most straightforward manner is implemented with the following API in the following method:
API: PSSB PartitionDefinition getPartitions() Method: PartitionDefinition p[x] = createPartitionDefinition(String partitionName)
The programmer typically implements a loop and creates partitions using a string. The name can be any typical character string. For example, two partitions can be created with the API noted previously, and named P001 and P002. Each partition is subsequently activated on a single member in the cluster when the HA manager detects and runs the policy. The partition name, for example P001, must be unique within the entire cluster.
If this API does not run consistently on each application server in the cluster, the partition cannot be moved to or made active on a given application server. In terms of debugging this problem, refer to General cluster and WPF management considerations in the management section.
What is a partition?