![]() |
![]() |
|
|
| |
Writing J2EE Connector Architecture- Compliant Resource Adapters
The following sections identify the requirements for developing a compliant Resource Adapter, as identified in the J2EE Platform Specification, Version 1.3, Proposed Final Draft 3—http://java.sun.com/j2ee. The following sections correspond to the System Contract requirements identified in this specification:
In addition, any Weblogic specific limitations/restrictions are identified.
Note: For instructions on building a resource adapter, see the BEA WebLogic Application Integration documentation at: http://download.oracle.com/docs/cd/E13214_01/wlintegration/v2_0/applicationintegration/devel/index.htm
Connection Management
The connection management contract requirements for a resource adapter are as follows:
To support non-managed environments, a resource adapter is not required to use the above two interfaces to drive its internal object interactions.
A default implementation of ConnectionManager enables the resource adapter to provide services specific to itself. These services can include connection pooling, error logging and tracing, and security management. The default ConnectionManager delegates to the ManagedConnectionFactory the creation of physical connections to the underlying EIS.
In a non-managed two-tier application scenario, a resource adapter is allowed to support connection pooling internal to the resource adapter.
Security Management
The security management contract requirements for a resource adapter are as follows:
Transaction Management
This section outlines the transaction management contract requirements for a resource adapter. A resource adapter can be classified based on the level of transaction support, as follows:
Note: Other levels of support (includes any transaction optimizations supported by an underlying resource manager) are outside the scope of the Connector Architecture.
The above levels reflect the major steps of transaction support that a resource adapter needs to make to allow external transaction coordination. Depending on its transaction capabilities and requirements of its underlying EIS, a resource adapter can choose to support any one of the above transaction support levels.
Packaging and Deployment
The following sections discuss packaging and deployment requirements for resource adapters.
Restrictions
At present, the WebLogic J2EE Connector Architecture supports only serializable ConnectionFactory implementations. (Referenceable-only ConnectionFactory implementations are not supported.)
In addition, the WebLogic J2EE Connector Architecture does not support the javax.resource.spi.security.GenericCredential credential-interface or the Kerbv5 authentication-mechanism-type. Specification of either of these values for the <authentication-mechanism> in the ra.xml file for the resource adapter being deployed will result in a failed deployment.
Packaging
The file format for a packaged resource adapter module defines the contract between a resource adapter provider and deployer. A packaged resource adapter includes the following elements:
Deployment
For information on packaging requirements, refer to section 10.3.1, "Resource Adapter Provider," and section 10.5.1, "Responsibilities," of the J2EE Connector Specification, Version 1.0, Proposed Final Draft 2 (http://java.sun.com/j2ee/download.html#connectorspec). Section 10.3.1 discusses deployment requirements, while section 10.5.1 discusses how to support JNDI Configuration and Lookup.
![]() |
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|