Show TOC

Migrating Standard Projects into Development ComponentsLocate this document in the navigation structure

Use

With this procedure you migrate your standard development projects to a development component (DC), which you can add to SAP NetWeaver Development Infrastructure (NWDI) control. The procedure is applicable for the following type of local projects:

  • Enterprise Application Project

  • EJB Project

  • Java Project

  • Dynamic Web Project

  • Web Dynpro Project

Procedure

Migrating Projects

Note

There is no automatic migration for Web, EJB, and EAR project. You have to move them manually to a DC.

  1. Open the Project Explorer view of the SAP NetWeaver Developer Studio.

  2. Select the project you want to migrate. In the context menu, choose Start of the navigation path Development Component Next navigation step Convert Project to Development Component... End of the navigation path

  3. In the dialog that appears, select a development configuration and navigate to the software component (SC) in which the converted project should be put as DC. Choose Next .

  4. Select the project that you want to convert to development component. Choose Finish .

    The new DC project is created in the selected SC.

    Note

    Public parts are not generated automatically.

Migrating EAR Projects

Since it is not possible to migrate an EAR project, you have to create it from scratch.

  1. From the Development Infrastructure perspective, select the SC to which you want to add the DC. Open the context menu and choose Start of the navigation path New Next navigation step Development Component End of the navigation path.

  2. In the dialog that appears, select Start of the navigation path J2EE Next navigation step Enterprise Application End of the navigation path. Choose Next .

  3. Specify preferences for the new DC. Choose Finish .

  4. Select the DC and open the Public Parts tab. Create a new public part for the migrated Web project.

    Note

    When creating a DC Web Module project from scratch, the public parts are generated automatically.

  5. Choose Dependencies tab. Add the dependency to the engine.jee5.facade public part (for servlet.jar ).

  6. Add the dependency from the EAR project to the migrated web project. Open the Component Properties view of the EAR DC.

    1. Select the tab Dependencies and choose Add.. .

    2. In the dialog that appears, choose the DC that should be referenced from the list. Choose Next .

    3. Select the public part of type assembly and choose Finish .

  7. Build the DC with the newly created public part.

    From the DC context menu choose Build .

  8. Build the EAR project and deploy it locally to test it.

Result

Your project is now available as a DC.

More information :

Migrating J2EE Library DC to Enterprise Application DC