Modeling a Reference Between Beans
References can be created between modeled beans on a class diagram.
-
EJB References can be created from any bean to any other bean with a
remote interface.
-
EJB Local References can be created from any bean to any other bean
with a local interface.
Note: References can only be made to beans that are
inside the current deployment descriptor.
To model a reference between modeled beans:
-
Click the icon for the reference you want to create, from those listed
on the EJB Component Palette:
-
EJB Reference
-
EJB Local Reference
Note: If these icons are not displayed, select
EJB from the dropdown on the Component Palette.
-
Click the bean at the 'owning', or 'from', end of the reference.
-
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.