Configure connection factories for resource adapters within applications
To access an enterprise information system (EIS), configure connection factories, which instantiate resource adapter classes for establishing and maintaining resource connections.
Overview
An application component uses a connection factory to access a connection instance, which the component then uses to connect to the underlying enterprise information system (EIS). Examples of connections include database connections, JMS connections, and SAP R/3 connections.
Procedure
- Click Applications.
- Click Install New Application.
- Browse to find the appropriate EAR file, which contains an RAR file.
- Click Next.
- Select resource ref mapping to a J2C Connection Factory, then click Next.
- After the application installs, click Applications.
- Select the application just installed.
- Click Connector Modules under Related Items.
- Select an RAR file name on the Connector Modules page.
- Click Resource Adapter under Additional Properties.
- Click J2C Connection Factories under Additional Properties.
- Click New.
- Specify General Properties.
- Select a Component-managed authentication alias if any application components with Application or Per connection factory authentication specified in the resource reference are going to be getting connections from this connection factory using the empty-argument getConnection() method. For resources supporting XA, you can optionally specify an Authentication alias for XA recovery. If a desired alias is not available, or you want to define a different one, click Apply > J2C Authentication Data Entries under Related Items.
- Click J2C Auth Data Entries under Related Items.
- Click New.
- Specify General Properties.
- Click OK.
- Click OK.
- Click the J2C connection factory you just created.
- Click Connection Pool under Additional Properties .
- Change any values desired by clicking on the property name.
- Click OK.
- Click Custom Properties under Additional Properties.
- Click any property name to change its value. Note that UserName and Password if present, are overridden by the component-managed authentication alias you specified in a previous step.
- Click Save.
Resource adapters
Connection pooling
Related tasks
Configure new J2C connection factories using scripting
Related Reference
CMP connection factories collection
Connection pool settings
J2EE resource provider or connection factory custom properties collection
J2C Connection Factories collection