The UML to EJB transformation configuration window contains five tabs: Target, Entity, Session, Mapping, and Common. This section describes how the first three tabs affect the EJB transformation.
You can use the Target tab to select the target EJB project in which the EJB transformation generates the output files. You can create a new target container even if an EJB project is available. Each project is associated with a single EJB container. The EJB transformation supports all the available EJB container versions that the EJB project wizard provides.
The version of the target EJB project container might restrict the options that are available on the Entity and Session tabs. For more details on the restrictions of each type of EJB container, see the Target EJB container section.
You can use the Entity tab to customize newly generated entity beans. You can configure two different options on the Entity tab: Entity Bean Type and Entity Bean Interface. The following figure shows the Entity tab in the EJB transformation configuration window:
Depending on the version of the EJB container in the project, you can only select certain combinations of properties before you can run the EJB transformation. The following table lists the entity bean types that the transformation supports, the interfaces that the entity beans support, and the default interface selection:
EJB container version |
Entity bean type |
Supported interfaces for entity beans |
Default selection |
2.x |
CMP 2.x |
Local and remote |
Local Interfaces Only |
2.x |
CMP 1.1 |
Remote |
Remote Interfaces Only |
2.x |
BMP |
Local and remote |
Local Interfaces Only |
1.1 |
CMP 2.x |
None |
N/A |
1.1 |
CMP 1.1 |
Remote |
Remote Interfaces Only |
1.1 |
BMP |
Remote |
Remote Interfaces Only |
The default selections in the table reflect the default behavior of the entity bean creation wizard.
If you select an invalid combination of options, an error message is displayed at the top of the EJB transformation configuration window and the Run button that runs the transformation is unavailable. When you select a valid combination of options, the Run button becomes available and the error message disappears.
You can use the Session tab to customize the generation of interfaces for newly generated session beans. The following figure shows the Session tab in the EJB transformation configuration window:
Depending on the version of the EJB container in the project, you can only select certain combinations of properties before you can run the EJB transformation. The following table lists the interfaces that the transformation supports for session beans, according to the version of the EJB container, and the default interface selection:
EJB container version |
Supported interfaces for session beans |
Default selection |
1.1 |
Remote |
Remote Interfaces Only |
2.0 |
Local and remote |
Remote Interfaces Only |
2.1 |
Local and remote |
Remote Interfaces Only |
If you select an invalid combination of options, an error message is displayed at the top of the EJB transformation configuration window and the Run button that runs the transformation is unavailable. When you select a valid combination of options, the Run button becomes available and the error message disappears.
Terms
of use | Feedback
(C) Copyright IBM Corporation 2004. All Rights Reserved.