EJB transformation profile

You must use the Enterprise JavaBeans™ (EJB) transformation profile to specify the Unified Modeling Language (UML) model elements that the transformation uses to enterprise beans from a UML model. If you do not use stereotypes of the profile, the transformation uses the rules of the UML-to-Java transformation to generate output and enterprise beans are not generated.

The EJB profile defines stereotypes that the UML-to-EJB transformation interprets to generate enterprise beans. For example, when you apply the <<entity>> stereotype to a class in your model, the transformation generates an entity bean from the class. To generate enterprise beans, you must apply the EJB transformation profile to the source model. You must then apply the stereotypes that the profile contains to the model elements.

The UML-to-EJB transformation defines constraints for how to apply stereotypes. These constraints generate errors or warnings when you validate your model if you have improperly applied the stereotypes of the EJB transformation profile to the source model elements. To ensure that the UML-to-EJB transformation generates the expected output, you should correct any errors or warnings before you run it.

To view a description of the stereotypes of the profile, you should read the information that is available at Modeling > Transform > Configure Transformations. From the Transformations/Configurations list, select UML to EJB. On the Transformation Description page, click View Transformation Documentation.

Related tasks
Generating EJB beans and Java classes from UML models
Applying the UML-to-EJB transformation profile
Related reference
Installed transformations
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.