3.3.3 How to use the resource adapters

This subsection describes how to use the resource adapters. There are two types of methods of using the resource adapters to connect to resources:

The following is a description of the methods:

Organization of this subsection
(1) Deploying and using the resource adapter as a J2EE resource adapter
(2) Including and using the resource adapter in a J2EE application
(3) Resource adapters available in each usage method

(1) Deploying and using the resource adapter as a J2EE resource adapter

Deploy the resource adapter imported into the J2EE server as a shared standalone module. The resource adapter is now available to all the J2EE applications running on that J2EE server. The resource adapters allocated to the J2EE server are called the J2EE resource adapters.

(2) Including and using the resource adapter in a J2EE application

Include the resource adapter in a J2EE application to use the resource adapter. The EJBs and WARs included in the same J2EE application can use the resource adapter. For details on how to include and use the resource adapter in a J2EE application, see 3.3.9 Procedure for resource adapter settings (To include and use the resource adapter in the J2EE application).

Note that the resource adapters that can be included in a J2EE application are limited. For details, see (3) Resource adapters available in each usage method.

(3) Resource adapters available in each usage method

The resource adapters must be compatible with the Application Server versions. Also, you can deploy and use the resource adapters conforming to the Connector 1.0 specifications and Connector 1.5 specifications with Application Server. However, when you include and use the resource adapters in J2EE applications, you cannot use the following resource adapters:

The following table describes the usage of the resource adapters provided by Application Server.

Table 3-7 Usage of the resource adapters provided by Application Server

Resource adapterUsage
Deploying and using the resource adapter as a J2EE resource adapterIncluding and using the resource adapter in a J2EE application
DB ConnectorSpecified in NoTransaction or LocalTransactionYY
Specified in XATransactionY--
Cluster configurationRoot resource adapterY--
Member resource adapterY--
uCosminexus TP1 ConnectorSpecified in NoTransaction or LocalTransactionYY
Specified in XATransactionY--
TP1/Message Queue - AccessY--
Cosminexus RMCosminexus RM (without database)Y--
Cosminexus RM (with database)Y--
DB Connector for Cosminexus RMY--
TP1 inbound adapterY--
CJMSP resource adapterY--

Legend:

Y: Available

--: Not applicable


If you execute the following operations for the unavailable resource adapters, an error message is output and the operation fails: