When you execute a J2EE application that uses the JPA, with Application Server, you can use a resource adapter with the connection factory interface javax.sql.DataSource. You can use DB Connector as the resource adapter provided with Application Server.
Also, you must deploy the resource adapter you want to use as the J2EE resource adapter. In the case of the J2EE applications using the JPA, you cannot include and deploy the resource adapter in the J2EE application.
The following table lists the resource adapters available with Application Server.
Table 5-5 Resource adapters available with Application Server
Connection factory interface | Deploy format of the resource adapter | Usage from the JPA |
---|---|---|
javax.sql.DataSource | Deployed as a J2EE resource adapter | Y |
Included and deployed in the J2EE application | N | |
Other than javax.sql.DataSource | -- | N |
For details on the resource adapters available when you use Cosminexus JPA provider, see 6.2.3(3) Available DB Connectors.