The J2EE Connector Architecture standard defines three system-level contracts, which the resource adapter implements:
· Connection management
· Transaction management
· Security management
The connector architecture also provides a set of standard APIs to enable the implementation of the above contracts. In addition, the resource adapter might implement its specific interfaces to ensure connectivity to the specific EIS it is developed for.
The implementation of a resource adapter involves the following steps:
· Implementing the connection management
· Implementing the transaction support
· Implementing the security functions
Within these three steps you have to provide implementation for the interfaces from two packages:
· javax.resource.cci – this part of the API enables the client-side connectivity to the EIS
· javax.resource.spi – this part of the API enables the application server to create the physical connection to the EIS and to access the system-level contracts.
In addition, you can implement interaction functions in the resource adapter.