Adding resource adapters and connection factories to a WebSphere Application Server v5.x

Resource adapters are sets of related classes that let an application access a resource such as data, or an application on a remote server, often called an Enterprise Information System (EIS). When working with JCA resource adapters, you have to add an instance of the JCA connection factory and configure its properties.

The connection factory provides connections to the EIS on demand. You specify all the information needed by the resource adapter to connect to the particular instance of the EIS. You also specify the JNDI lookup name under which the new connection factory instance will be available to components. With this lookup name, the components can quickly make a connection to the EIS. You can add resource adapters and connection factories on the J2C page of the WebSphere Application Server v5.x server editor.

Prerequisite steps:

  1. Created or imported at least one connector project in your workspace.

Steps for this task:

To add a connection factory to a WebSphere Application Server v5.x test environment or server,...

  1. In the Servers view, double-click the WebSphere Application Server v5.x to open it. The server editor opens.

  2. Click the J2C tab and click Add beside the J2C Resource Adapters list table.

  3. Select the name of your J2EE resource adapter that you want to create from the Resource Adapter name drop down list. Click OK.

  4. Click Add beside the J2C Connection Factories list table.

  5. In the Create Connection Factory dialog box, enter a name, a JNDI name for the connection factory and any other values you want for the connection factory. For more information about any of the fields on this dialog box, select the field and then press F1. Click OK.

  6. In the Resource Properties list table enter the connection properties. For instance, for CICS you may enter the URL of your EIS transaction gateway, the name of your EIS server and any other required properties in the Value fields.

  7. Close the editor and click Yes to save the changes.

 

Parent topic

Configuring WebSphere Application Server v5.x