WebSphere eXtreme Scale (formerly Data Grid), Version 6.1
             Operating Systems: AIX, HP-UX, Linux, Solaris, Windows


Other servlet API HttpPartitionManager methods

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 enterprise bean) 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.



Related concepts
HTTP programming interfaces
Reference topic    

Terms of Use | Feedback

Last updated: Oct 30, 2009 6:09:57 PM EDT
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r1/index.jsp?topic=/com.ibm.websphere.dataint.doc/info/WPF51/rwpfservletmethods.html