Show TOC

Assembling and Configuring the Resource AdapterLocate this document in the navigation structure

Context

To ensure that the adapter functions properly, you need to configure it correctly at deployment time.

You can specify a set of configurable properties of the resource adapter. These properties are stored in the standard deployment descriptor of the resource adapter ( ra.xml ).

Procedure

  1. Configure the ManagedConnectionFactory.

    You have to specify the settings for the ManagedConnectionFactory that will provide the connectivity to the relevant EIS.

    For more information, see ManagedConnectionFactory Configuration .

  2. (Optional) Configure the resource adapter transaction support.

    If you want the resource adapter to support transactions, that is, whether the resources provided by this resource adapter can be enlisted in transactions, you have to configure the resource adapter transactions support.

    For more information, see Resource Adapter Transaction Support .

  3. (Optional) Configure the connection pooling for the resource adapter.

    You can configure the connection pooling for each ManagedConnectionFactory.

    For more information, see Connection Pooling .

  4. Pack the resource adapter.

    Having configured the resource adapter, you have to prepare it for deployment according to the requirements in the JCA specification.

    • Pack the resource adapter in a Resource Adapter Archive (RAR file).

      If you want to have your resource adapter available standalone, you can export it as a RAR.

      1. Select the Connector project in the Project Explorer .

      2. Choose Start of the navigation path File Next navigation step Export End of the navigation path.

      3. In the Export dialog, select Start of the navigation path Java EE Next navigation step RAR file End of the navigation path, then choose Next .

      4. Fill out the required fields, then choose Finish .

      For more information about the RAR file, see Resource Adapter Archive (RAR) .

    • Add the resource adapter to an Enterprise Archive (EAR).

      If you want to deploy the resource adapter immediately via the Developer Studio, you have to add it to an EAR.

      You can add your Connector project to an EAR either during creating the Connector project, or during creating the EAR itself.

      For more information, see:

      Creating Connector Projects in the Developer Studio

      Creating Enterprise Application Projects

Results

The resource adapter is ready for deployment.