You use this procedure to add a resource adapter to an application and edit the resource adapter deployment descriptors.
1. In your DLP project, choose the J2EE Components tab.
2. From the menu options, choose J2EE Components→Add Resource Adapter. The Load Resource Adapter dialog box appears.
3. Enter a name for the resource adapter in the Archive Name field.
Use unique resource adapter names in a project.
4.
If You Want To |
Then |
Create a new resource adapter |
Select the Create New radio button. |
Load an existing resource adapter |
Select the Load Existing radio button. In the ra.xml field, select the deployment descriptor of the RAR from the file system. |
5. In the Files Directory field, from the file system select the directory of the class files to be included in the resource adapter. This directory is added as a directory of the archive. You can also set directories at a later time. For more information, see Managing Files and Directories.
6. To close the Load Resource Adapter dialog box, choose OK.
The connector appears at the J2EE Components tab. To load the resource adapter correctly, you must specify the classpath to the package of Java class files included in the connector. For more information, see Setting a Project Classpath.
See also:
Resource Adapter Properties Management