Program guide > (deprecated) Partitioning facility > Partitioning facility programming > Develop partitioning facility applications with WSAD v5.1 > Use WSAD 5.1 with a new partitioned application


Deprecated feature: The partitioning facility (WPF) feature is deprecated. You can configure partitioning with WebSphere eXtreme Scale.


Add sample partitions


About this task

Add the following variable to the partition stateless session bean (PSSB):

PartitionManager ivRuntime;

You also need to add the following import:

import com.ibm.websphere.wpf.*;

Update your setSessionContext method to look like the following:

public void setSessionContext(javax.ejb.SessionContext ctx) {
        mySessionCtx = ctx;
        try
        {
            InitialContext ic = new InitialContext();
            ivRuntime = (PartitionManager)ic.lookup(PartitionManager.JNDI_NAME);
            
        }
        catch(Exception e)
        {
            throw new EJBException("Problem initializing PSSB", e);
        }
    }

This retrieves the PartitionManager service that is used to create data structures needed for partitioning.


Parent topic:

Use WSAD 5.1 with a new partitioned application


Related tasks

Use WSAD 5.1 with a new partitioned application

Related reference

Update the getPartitions method


+

Search Tips   |   Advanced Search