About this task
This example will use both the partitioning facility and proxy datasource
features. To use the partitioning facility feature, you need to create a partitioned
stateless session bean (PSSB).
Procedure
- Click File > New > Enterprise Bean to create an enterprise
bean.
- Type ProxyDSAccountSampleEJB as the project name, then click Next.
- Configure the project.
- Select the Session Bean field.
- Type AccountPartitionBean for the Bean name.
- Type com.ibm.websphere.proxyds for the Default package.
- Click Next.
- Deselect the Remote client view.
- Select the Local client view.
- Type com.ibm.websphere.wpf.PartitionHandlerLocalHome for
the local home and com.ibm.websphere.wpf.PartitionHandlerLocal as the
local interface.
- Click Finish.
- Copy the AccountPartitionBean.java from the extracted ProxyDSAccountSample
java code into the workspace. You will see several compilation
errors, which you can resolve later.