Transforming Enterprise JavaBeans 3.0 and Java classes into UML model elements

You can use the EJB 3.0-to-UML transformation to generate annotated Unified Modeling Language (UML) model elements from Enterprise JavaBeans 3.0 and Java classes. You should be familiar with the Java-to-UML and UML-to-Java transformations before you run the EJB 3.0-to-UML transformation.

About this task

You can use this transformation in both of the following round-trip-engineering (RTE) scenarios:
  • Transform a UML model into code, change the code, and then transform the changed code into UML (model-code-model)

    By default, the IBM® Rational® modeling products support this scenario, which begins by running the UML-to-EJB 3.0 transformation.

  • Transform existing EJB 3.0 session beans and Java code into a UML model, change the model, and then transform the changed model into Java code and EJB 3.0 session beans (code-model-code)
    This scenario begins by running the EJB 3.0-to-UML transformation. To use this transformation in this scenario, you must link the existing EJB 3.0 session beans and Java code elements to the UML model elements in the model that this transformation generates. This linking adds annotations and comments to the code so that the UML-to-EJB 3.0 transformation can propagate the UML changes to the code and preserve existing method bodies. You should link the elements before you modify the recently added model elements and run the UML-to-EJB 3.0 transformation. After you link the elements, subsequent transformations merge as you expect.
    Note: To link the code elements to the UML model elements, on the Main page of the UML-to-EJB 3.0 transformation configuration, click Link Java to UML.

    For more information about this scenario and merging changes when you develop EJB 3.0 session beans, Java, and UML, see the related concept topic below. Although this related topic describes the workflow for the Java transformations, the workflow is the same for the UML-to-EJB 3.0 and EJB 3.0-to-UML transformations.


Feedback