Working with Connectors
A Resource Adapter Archive (RAR) stores resource adapters that may be deployed on any J2EE server, 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.
There are three ways to work with RARs in Studio.
- Can be directly deployed using Deploy Tool without adding to Desk
- Can be packaged in EAR using Package Tool
- Can be imported in Desk to be available for Express Development.
Deploying RARs directly
RARs can be directly deployed in Studio without adding the archive to the Desk. To do this,
- Open the Deploy tool by clicking on Tools > Deploy from the main menu. This starts the current server, if not already up and brings up the Deploy tool.
- In the Deploy tool that comes up, select Archive > Open to open the archive from the location it is stored in.
- Select Archive > Deploy to deploy the archive. The archive is now ready to be accessed by the client.
Packaging RARs in Studio
RARs can be deployed in Studio after adding it to an enterprise archive. To do this,
- Open the Package tool by clicking on Tools > Package from the main menu. This brings up the Package tool.
- In the Package tool that comes up, select EAR > New. This creates an EAR. To open an existing EAR, select EAR > Open > Choose. This prompts the user for the EAR to be opened.
- In the EAR that opens, 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 the Deploy tool.
Using RAR in Express Development
To work with RARs in Express Development,
- Open the Desk, which contains a rar node in the tree.
- Right click on the rar folder and select Import Files.
- In the Import Files panel that comes up, select the directory where the resource archive is stored and import the required files in Studio.
- This file is now available for Express Development.
To know more on how to import files, read the section on Importing Files.