In addition to registration and deregistration of notifications and
creating request expressions, the HttpPartitionManager supports a number of
other functions useful to servlets:
/**
* Get the list (Vector of Strings) of active partitions.
*/
public Vector getActivePartitions(String appName);
/**
* Add a partition.
*/
public void addPartition(String appName, String partitionName);
/**
* Remove a partition.
*/
public void removePartition(String appName, String partitionName)
throws UnknownPartitionException;
The getActivePartitions() method returns the Vector of Strings corresponding
to the partitions that the HttpPartitionManager believes to be active at a
given time. The addPartition() and removePartition() methods allow a servlet
(and an EJB) to register new partition names with HTTP partitioning. In the
case of addPartition, this will result in the activation of the partition
in some application instances in the cluster.