Modeling a Reference Between Beans

References can be created between modeled beans on a class diagram.

Note: References can only be made to beans that are inside the current deployment descriptor.

To model a reference between modeled beans:

  1. Click the icon for the reference you want to create, from those listed on the EJB Component Palette:

    Note: If these icons are not displayed, select EJB from the dropdown on the Component Palette.

  2. Click the bean at the 'owning', or 'from', end of the reference.
  3. Click the bean at the 'to' end of the reference.
    This creates a method in the bean class at the 'owning' end of the reference.

Related topics

Modeling a Bean on a Diagram
Modeling a Relationship Between Entity Beans

 

Copyright © 1997, 2004, Oracle. All rights reserved.