Design an EJB module using EJB visualization

Creating UML class diagrams of enterprise beans

You can create new Unified Modeling Language (UML) class diagrams of enterprise beans to understand the structure and relationships of enterprise beans, and bean classes and interfaces.

To create a UML class diagram of enterprise beans, in the Project Explorer view, select and right-click the enterprise beans; then click Visualize > Add to New Diagram File > Class Diagram.

Add to New Diagram File

New Class Diagram

Tip: You can also create UML class diagrams of Enterprise JavaBeans (EJB) projects from the EJB Deployment Descriptor Editor. Select an EJB project and, on the Overview page, under Visualization, click New Class Diagram.

Setting the default to add new enterprise beans to class diagrams

You can set the default to add new enterprise beans to existing or new class diagrams when you create them by using the Create an Enterprise Bean wizard.

To set the default to add new enterprise beans to class diagrams:

  1. Click Window > Preferences.

  2. In the Preferences window, expand Modeling and click EJB.

  3. On the EJB page, select Allow newly generated/created EJBs to open in selected class diagrams.

    Modeling - EJB

Showing and hiding EJB relationships

You can update an open class diagram or selected enterprise beans in a class diagram by showing or hiding the relationships that match your selected criteria.

Relationships must already exist between enterprise beans before you can show or hide them.

NOTE: Hiding relationships removes the relationships from the diagram only. The underlying semantic relationships remain intact.

To show or hide EJB relationships:

  1. In the diagram editor, complete one of the following steps:

    • To update an open class diagram, right-click an empty space in the diagram editor; then click Filters > Show/Hide Relationships.

      Show-Hide Relationships

    • To update selected enterprise beans, right-click an enterprise bean or group of selected enterprise beans; then click Filters > Show/Hide Relationships.

  2. In the Show/Hide Relationships window, specify the types of EJB relationships to show or hide by selecting or clearing the check boxes.

    EJB relationships

  3. Click OK.

BOOT.BY - Tech Industry News         Free SCBCD 1.3 Study Guide     Free SCDJWS 1.4 Study Guide     SCDJWS 1.4 Quiz     Free IBM Certified Associate Developer Study Guide     Free SCJP 5.0 (Tiger) Study Guide     Free Mock Exam Engine     Free SCWCD 1.4 Study Guide     IBM Test 000-287. Enterprise Application Development with IBM WebSphere Studio, V5.0 Study Guide     Free SCBCD 5.0 Study Guide