uCosminexus Application Server, Application Development Guide

[Contents][Glossary][Index][Back][Next]

Appendix G.4 Migrating EJB projects

To migrate the EJB projects in MyEclipse to WTP, create the project in WTP, and then migrate the resources of the EJB project that you want to migrate. To migrate an EJB project:

Organization of this subsection
(1) Creating an EJB project
(2) Migrating the resources of an EJB project

(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:

(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:

  1. In the Project Explorer view of WTP, choose the project created in WTP.
  2. From the Eclipse menu bar, choose File - Import.
    The Import dialog box appears.
  3. 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.
  4. 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]

  5. 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.
  6. In Options, select Create top-level folder.
  7. 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.