Chapter 14 Working with Java


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:

For more information on the Java formats, see section Reverse engineering Java formats in chapter Reverse engineering.

Steps To reverse engineer servlets:

  1. Select Language→Reverse Engineer Java.

    The Reverse Java dialog box appears.
  2. Select Archive from the Reverse dropdown listbox in the Selection page.
  3. Click the Add button.

    A standard Open dialog box appears.
  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 to display the options page.
  6. Select the Reverse Engineer Deployment Descriptor check box.
  7. Click OK.

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

    For more information on merging models, see section Merging Models, in chapter Comparing and Merging Models in the General Features Guide .
  8. Click OK.

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

 


Copyright (C) 2005. Sybase Inc. All rights reserved.