Transforming REST or JAX-RS models into REST or JAX-RS service elements

To transform a REST service model into Java™ implementations in a target Java project, or to transform a JAX-RS service model into corresponding JAX-RS-specific elements in a dynamic web project, configure a UML-to-Java transformation and enable the JAX-RS UML-to-Java5 transformation extension, and then run the transformation.

Before you begin

You must be in the Modeling perspective. To model Rest web services, you must have the REST Modeling capability enabled. To model JAX-RS-specific design capabilities by using stereotypes in the JAX-RS profile, you must have the JAX-RS Modeling capability enabled.


  1. Create a UML-to-Java transformation configuration as described in the topic in the related link below.
  2. In the Transformation Configuration editor, on the Extensions page, select the JAX-RS UML-to-Java5 Transformation Extension check box.
  3. Click File > Save.

What to do next

You can now run the transformation. For information about running transformations, see the related link at the end of this topic.