uCosminexus Application Server, Application Development Guide

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

Appendix J.4 Migrating the EJB-JAR project

To migrate the EJB-JAR project to WTP, create a project in WTP, and then migrate the resources of the EJB-JAR project. The procedure for migration is described below.

Organization of this subsection
(1) Creating an EJB project
(2) Migrating the resources of an 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:

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

  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, select 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 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]

  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 some 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.

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.