Designing with Sun JCA Adapters

Configuring Runtime Components in an EJB/JCA Application

The following task outlines the steps need to configure runtime components in an EJB/JCA application Specific examples are provided for File and Oracle JCA adapters.

ProcedureConfiguring Connector Pools for File Adapter

  1. To create an Outbound Connector Connection Pool for the File Adapter, navigate to the Application Server Admin Console at htt://localhost:4848.

  2. Select the Resources > Connectors > Connector Connection Pools tree node, and click New.

  3. Enter a name for the pool name, and select GRfileadapter as the Resource Adapter type.

    Resource Adapter type
  4. Click Next, and then Finish.

  5. Create an Outbound Connector Resource from the Resource Pool above. In the Admin Console, select Resources > Connectors > Connector Resources, and click New.

  6. Fill in the JNDI Name for the Resource, and select the name of the Resource Pool created previously, and click OK.

    Enter JNDI Name
  7. To configure the File outbound pool, navigate to the web-based configuration editor at htt://localhost:4848/Configurator.

  8. Select filepool from tree.

    Configure File Outbound Pool
  9. Modify the Output file name, Add EOL, Multiple records per file, Encoding, and Directory as required for your project.

ProcedureConfiguring Connector Pools for Oracle Adapter

  1. To create an Outbound Connector Connection Pool for the File Adapter, navigate to the Application Server Admin Console at htt://localhost:4848.

  2. Select the Resources > Connectors > Connector Connection Pools tree node, and click New.

  3. Enter a name for the pool name, and select GRoracleadapter as the Resource Adapter type.

    Resource Adapter type
  4. Click Next, and then Finish.

  5. Create an Outbound Connector Resource from the Resource Pool above. In the Admin Console, select Resources > Connectors > Connector Resources, and click New.

  6. Fill in the JNDI Name for the Resource, and select the name of the Resource Pool created previously, and click OK.

    Enter JNDI Name
  7. To configure the Oracle outbound pool, navigate to the web-based configuration editor at htt://localhost:4848/Configurator.

  8. Select oraclepool from tree.

    Configure Oracle Outbound Pool
  9. Modify the following fields as required for your project:

    • Description

    • ClassName

    • ServerName

    • PortNumber

    • User

    • Password

    • DriverProperties

    • Delimiter

    • TNSEntry

    • MinPoolSize