Reverse Engineering Servlets

You can reverse engineer servlet code and deployment descriptor into an OOM. The reverse engineering feature reverses the Java class as a servlet class, it reverses the servlet as a component, and associates the servlet class with this component. The reverse engineering feature also reverses the deployment descriptor and all the files inside the WAR.

You start reverse engineering servlet from Language > Reverse Engineer Java.

Select one of the following Java formats from the Selection page, and select the Reverse Engineer Deployment Descriptor check box from the Options page:

  • Java directories

  • Class directories

  • Archive (.JAR file)

For more information on the Java formats, see Reverse Engineering Java Code.

  1. Select Language > Reverse Engineer Java.

    The Reverse Java dialog box is displayed.

  2. Select Archive from the Reverse list in the Selection page.
  3. Click the Add button.

    A standard Open dialog box is displayed.

  4. Select the items you want to reverse and click Open.

    The Reverse Java dialog box displays the items you selected.

  5. Click the Options tab , then select the Reverse Engineer Deployment Descriptor check box.


  6. Click OK.

    A progress box is displayed. If the model in which you are reverse engineering already contains data, the Merge Models dialog box is displayed.

    For more information on merging models, see Core Features Guide > The PowerDesigner Interface > Comparing and Merging Models.

  7. Click OK.

    The Reverse page of the Output window displays the changes that occurred during reverse and the diagram window displays the updated model.