With the development using Eclipse, you can import the resource adapters provided with Application Server in the enterprise application project. This section describes the procedure for importing resource adapters to the enterprise application project created using Eclipse.
Before you import resource adapters, make sure to create an enterprise application project. For details on the procedure for creating an enterprise application project, see 4.4.4 Creating an enterprise application project.
- In the Project Explorer view, select the enterprise application project as the import destination and in the context menu, select Import - Import.
The Import dialog box is displayed.
![[Figure]](FIGURE/ZU042400.GIF)
- Select General - File System and then click the Next button.
The File system page is displayed.
![[Figure]](FIGURE/ZU042500.GIF)
- Click the Browse button for the From directory.
The Import From Directory dialog box is displayed.
- Select the directory that includes the resource adapter to be imported.
The resource adapter is stored in the following directory:
Developer-installation-directory\CC\DBConnector\
![[Figure]](FIGURE/ZU042600.GIF)
- Click the OK button.
The Import From Directory dialog box closes and the directory selected in the list box on the left of the File system page is displayed. The list of files included in the selected directory will be displayed in the list box on the right side.
![[Figure]](FIGURE/ZU042700.GIF)
- Select the checkbox of the files you want to import.
- Click the Browse button for the Into folder.
The Import into Folder dialog box is displayed.
![[Figure]](FIGURE/ZU042800.GIF)
- Select the root folder of the Enterprise Application project at the import destination and click the OK button.
The Import into Folder dialog box closes.
- On the File system page, click the Finish button.
The resource adapter is imported into the folder selected in step 8.
- In the Project Explorer view, select enterprise-application-project-at-import-destination - contents-directory - META-INF - application.xml and in the context menu, select Open.
The application.xml file is displayed in the XML Editor.
- Select the Design tab.
The Design tab screen is displayed.
![[Figure]](FIGURE/ZU042900.GIF)
- The 'application' displayed on the screen is deployed.
- Select the 'module' and in the context menu, select Add After - Modules.
A new 'module' is added after the selected 'module'.
- The added 'module' is deployed and the 'connector' value is changed to the file name of the imported resource adapter.
- From the Eclipse menu bar, select File - Save.
The changes in application.xml are stored and the resource adapter is imported into the Enterprise Application project.
To import resource adapters without including the resource adapters in J2EE applications, use the server management commands or the management portal.
For details on importing the resource adapters using the server management commands, see 4. Resource Adapter Settings in the manual uCosminexus Application Server Application Setup Guide. For details on importing the resource adapters using the management portal, see 12. Managing the Logical Server Applications in the manual uCosminexus Application Server Management Portal Operation Guide.
All Rights Reserved. Copyright (C) 2012, 2013, Hitachi, Ltd.