Show TOC

Procedure documentationMigrating Standard Projects into Development Components Locate this document in the navigation structure

 

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 Note

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

End of the note.
  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   Development Component   Convert Project to Development Component...  

  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 Note

    Public parts are not generated automatically.

    End of the note.
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   New   Development Component  .

  2. In the dialog that appears, select   J2EE   Enterprise Application  . 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 Note

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

    End of the note.
  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