Program guide > (deprecated) Partitioning facility > Partitioning facility programming > Proxy DataSource development > Develop applications using proxy datasource support in WSAD


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


Configure the resource references for the session bean


About this task

The session bean creates the resource references for the datasources, which the container-managed persistence (CMP) enterprise bean uses through the proxy datasource, then specifies the datasource used in the transactions.

The CMP enterprise bean will use two DB2 datasources, one to access west coast database westtest, and the other to access east coast database easttest. Therefore, we need to create two datasource references for the session bean AccountTransaction.

  1. Select AccountTransaction from the beans list on the References tab of the EJB deployment descriptor.

  2. Click Add....

  3. Select Resource reference from the panel and then click Next.

    1. Define the Name as jdbc/myDS1.

    2. Define the Type as javax.sql.Datasource.

    3. Define the Authentication as Container.

    4. Define the Sharing scope as Shareable.

    5. Click Finish.

  4. Repeat the previous step to create a resource reference jdbc/myDS2.

  5. Repeat the previous step to create a resource reference jdbc/proxyds.


ResultsNow, you have created two resource references for the session bean AccountTransaction.


What to do nextOn the references panel, set the WebSphere binding for jdbc/myDS1 to jdbc/WestDS, set the WebSphere binding for jdbc/myDS2 to jdbc/EastDS, and set the WebSphere binding for jdbc/proxyds to jdbc/dsSampleDSProxy.


Parent topic:

Develop applications using proxy datasource support in WSAD


Related concepts

Develop applications using proxy datasource support in WSAD