Appendix J.4 Migrating the EJB-JAR project
(1) Creating an EJB project
Create an EJB project in WTP. For details on the procedure for creating the EJB project, see 4.4.2 Creating an EJB project.
The notes on creating an EJB project during migrating to WTP are as follows:
- For multiple EJB-JAR projects, create only as many EJB projects as the number of projects.
- In the EJB Project page of WTP, specify the project name of the EJB-JAR project in Project name.
(2) Migrating the resources of an EJB-JAR project
Migrate the resources of the EJB-JAR project. For details on the resources that can be migrated, see Appendix J.2(4) Migrating the resources of an EJB-JAR project.
To migrate the resources of the EJB-JAR project, copy the resources to be migrated in the EJB project created in WTP. You can use the import functionality of WTP to copy the resources. To import:
- In the Project Explorer view of WTP, choose the project created in WTP.
- From the Eclipse menu bar, choose File - Import.
The Import dialog box appears.
- In the Import dialog box, select General - File System, and then click the Next button.
The File System page of the Import dialog box will appear.
- In From directory, specify the project location directory to be migrated.
You can specify the project location directory from the Browse button as well.
The folders and files of the specified directory will appear. In the left pane, the folders and files of the directory specified in From directory, will appear in a tree format. In the right pane, the files of the folder selected in the left pane will appear.
![[Figure]](figure/zu0g0400.gif)
- Select the resources to be migrated.
- When migrating all resources of the folder
In the left pane, select the checkbox of the folder.
- When migrating only some resources of the folder
In the right pane, select the checkbox of the files to be migrated.
- In Options, select Create top-level folder.
- Click the Finish button.
The selected resources will be copied.
- Caution
- For multiple EJB-JAR projects, migrate the resources of all EJB-JAR projects in to the corresponding EJB project. For details on the resources to be migrated, see Appendix J.2 Resources to be migrated.
- You can also copy the files using the Windows Explorer. However if you use Explorer, the folders and files copied in views such as the Project Explorer view will not be displayed. To display the copied folders and files, in the Project Explorer view, select the project, and then in the context menu, select Update.