Applying the EJB transformation

You can use the Enterprise JavaBeans™ (EJB) transformation to generate EJBs from UML model elements. You should be familiar with the Java™ transformation before you apply the UML to EJB transformation.

Before you apply the EJB transformation, you should read the information available at Modeling > Transform > Configure Transformations. In the Transformations/Configurations list, click UML to EJB, on the Transformation Description page, click View Transformation Documentation.
To apply the EJB transformation:
  1. In the Model Explorer view, select the model elements or model that you want to transform to EJBs and Java code.
    Note: A model element that is contained within another model element, such as a component or collaboration, will not be transformed unless it is specifically selected.
  2. Right-click the selected model or model elements; then complete one of the following steps:
    • To run a new transformation configuration, click Transform > Run Transform > UML to EJB.
    • To run an existing transformation configuration, click the name of the transformation configuration.
  3. To create a new target EJB project, complete the following steps:
    1. In the Run Transformation window, click the Target tab.
    2. On the Target page, click Create new Target Container.
    3. In the New Project wizard, in the Project name field, type a name.
    4. Click Finish.
  4. Select a target from the list.
  5. To specify the type of entity bean that the transformation generates, click the Entity tab.
  6. On the Entity page, click an entity bean type.
  7. To specify the type of interface files that the transformation generates, click an interface type.
  8. To specify the type of session bean interfaces that the transformation generates, click the Session tab.
  9. On the Session page, click an interface type.
  10. To create derived relationships from generated Java elements to their UML source model element, click the Common tab.
  11. On the Common page, click Create source to target relationships.
  12. Click Run.
The transformation generates EJBs and Java code in the target EJB project which is displayed in the Model Explorer view.

Parent topic: Generating EJBs and Java classes from a model

Related concepts
EJB transformation
EJB transformation profile

Related reference
Installed transformations

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.