Creating a Diagram of Enterprise JavaBeans

Entity, session and message-driven beans, their properties and methods, the relationships and references between them can all be modeled graphically on an EJB diagram. EJB diagrams can also be used for modeling UML classes, Java classes, UML use cases, offline database objects, business components and web services.

To create a diagram of Java classes:

  1. Create a new EJB diagram in a project or application using the EJB Diagram EJB Diagram icon  icon in the New Gallery. For more information, see Create a New Diagram.

  2. Create the elements you require on the diagram using the EJB Component Palette.

    Entity Bean icon   Entity Bean

    Session Bean icon   Session Bean

    Message-Driven Bean icon   Message-Driven Bean

    1 to * Relationship icon  1 to * Relationship

    Directed 1 to 1 Relationship icon   Directed 1 to 1 Relationship

    Directed 1 to * Relationship icon   Directed 1 to * Relationship

    Directed Strong Aggregation   Directed Strong Aggregation

    EJB Reference icon  EJB Reference

    EJB Local Reference icon  EJB Local Reference

For more information on creating nodes and connectors on a diagram, see Creating Nodes on a Diagram and Connecting Nodes on a Diagram.

Tip: You can also annotate your diagram by creating and attaching notes to diagram elements, and adding URL links to other locations such as files or web locations. For more information, see Annotating a Diagram.


Getting Started with Enterprise JavaBeans Modeling
How to Read a Diagram of Enterprise JavaBeans
Modifying Modeled Enterprise JavaBeans
Reverse-Engineering an Entity Bean from a Table Definition
Modeling Properties and Methods on Beans

 

 

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