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:
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.
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.
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 adapter | Usage | |||
---|---|---|---|---|
Deploying and using the resource adapter as a J2EE resource adapter | Including and using the resource adapter in a J2EE application | |||
DB Connector | Specified in NoTransaction or LocalTransaction | Y | Y | |
Specified in XATransaction | Y | -- | ||
Cluster configuration | Root resource adapter | Y | -- | |
Member resource adapter | Y | -- | ||
uCosminexus TP1 Connector | Specified in NoTransaction or LocalTransaction | Y | Y | |
Specified in XATransaction | Y | -- | ||
TP1/Message Queue - Access | Y | -- | ||
Cosminexus RM | Cosminexus RM (without database) | Y | -- | |
Cosminexus RM (with database) | Y | -- | ||
DB Connector for Cosminexus RM | Y | -- | ||
TP1 inbound adapter | Y | -- | ||
CJMSP resource adapter | Y | -- |
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: