Entity beans, session beans, message-driven beans can all be modeled on a diagram in JDeveloper. Properties and methods can also be modeled on entity beans and session beans. For more information on creating nodes on a diagram, see Creating Nodes on a Diagram.
Entity beans on a diagram can be either Container-Managed Persistence (CMP) or Bean-Managed Persistence (BMP). Before creating entity beans with bean-managed persistence, you may want to first consider whether you will need to create relationships between those entity beans. Relationships can only be created between entity beans with container-managed persistence.
Session beans can be have their session type changed on a class diagram by right-clicking on the session bean and choosing Session Type | Stateful or Session Type | Stateless .
Message-driven beans are most often used to interact (using EJB References) with session and entity beans. You can only model message-driven beans in EJB 2.0 projects, or projects in which no EJBs have previously been modeled.
For more information on creating an EJB diagram, see Creating a Diagram of Enterprise JavaBeans.
Related topics
Copyright © 1997, 2004, Oracle. All rights reserved.