Working with Connectors
Overview
A Resource Adapter Archive (RAR) stores resource adapters that may be deployed on any J2EE se rver, similar to the EAR in a J2EE application. A RAR can be deployed in an EAR. A resource adapter is a J2EE component that implements the J2EE connector technology for a specific EIS. A J2EE application communicates with an EIS through a resource adapter.
Deploying RARs in Studio
There are three ways to work with RARs in Studio:
- Direct deployment using Deploy Tool
- Packaging in EAR using Package Tool
- Importing in desk to be available for Express Development
Deploying RARs directly
To deploy RARs directly without adding the archive to the desk:
- Open Deploy Tool by selecting Tools > Deploy from the main menu. This starts the current server, if not already running and brings up the Deploy Tool.
- Select Archive > Open in the Deploy Tool to open the archive from where it is stored.
- Select Archive > Deploy to deploy the archive.
The archive is now ready to be accessed by the client.
Deploying RAR with an EAR
To deploy RARs after adding it to an EAR:
- Open the Package Tool by selecting Tools > Package from the main menu.
- Select EAR > New in the Package Tool. This creates an EAR. To open an existing EAR, select EAR > Open. This prompts the user to browse for the EAR.
- In the EAR, right click on the EAR node and select Add RAR.
- Save the EAR and exit from the Package Tool using Archive > Save and Exit.
The EAR can now be deployed using Deploy Tool.
Using RAR in Express Development
To work with RARs in Express Development:
- Open the desk which contains a RAR node.
- Right click on the RAR folder and select Import Files.
- In the Import Files panel, select the directory where the RAR is stored and import the required files in Studio.
This file is now available for Express Development.