uCosminexus Application Server, Application Development Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
(1) Creating an EJB project
Create an EJB project in WTP. For details on how to create the EJB project, see 4.4.2 Creating an EJB project.
The notes on creating an EJB project for migrating to WTP are as follows:
- For multiple EJB projects, create EJB projects equal to the number of projects.
- In the EJB Project page of WTP, specify the project name of the EJB project in Project name.
(2) Migrating the resources of an EJB project
Migrate the resources of the EJB project. For details on the resources that can be migrated, see Appendix G.2(3) Migrating the resources of an EJB project.
To migrate the resources of an EJB 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, choose 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 in the specified directory are displayed. 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/ZU0F0010.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 a part of the 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.
- Notes
- For multiple EJB projects, migrate the resources of all EJB projects to the corresponding EJB project. For details on the resources to be migrated, see Appendix G.2 Resources to be migrated.
- You can also copy files by using 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, select the project in the Project Explorer view, and then in the context menu, choose Update.
All Rights Reserved. Copyright (C) 2012, 2013, Hitachi, Ltd.