J2EE EJB UML Diagrams

background image

EJB UML Diagrams

EJB UML Diagrams

Last update : 07/01/2003

back to HOME

PAGE

Introduction

The goal of this article is to illustrate with UML diagrams EJB programming applying J2EE design patterns. Work in

Progress ...

Contents :

1.

EJB Class diagrams

2.

ServiceLocator

3.

Links

about presentations and tutorials about EJB.

4.

Credits

- about the author of this article and to know if you can use the diagrams in your project

To print the figures of this article, configure your printer in landscape mode.

back to Top

1. EJB Class diagrams

EJB Class Diagram

Note : All the names of the classes are followed by a number because the tool I use does not authorize to use the

existing names of EJB classes. The final version of diagrams will be "clean".

Class Diagram of the example

http://rollerjm.free.fr/pro/EJB_UML.html (1 de 4) [23/02/2003 23:07:18]

background image

EJB UML Diagrams

Description

InterestAction is a

Struts

class, an open source framework. InterestAction is Controller servlet which processes

the client request and interacts with the Business logic layer

BusinessDelegate is based on the Business Delegate Design Pattern, it encapsulates business services

InterestVO is a Value Object, encapsulates the business data which interface the Presentation Tiers to the

Business Tiers

ServiceLocator is used to abstract all JNDI usage and to hide the complexities of initial context creation and the

EJB home object lookup

InterestHome is the Home Interface

Interest is the Remote Interface

InterestBean is the Stateless Session Bean

back to Top

2. Service Locator

http://rollerjm.free.fr/pro/EJB_UML.html (2 de 4) [23/02/2003 23:07:18]

background image

EJB UML Diagrams

Messages Description

1 The Business Delegate calls the ServiceLocator to get a reference on the Home Interface

The Service Locator does the following actions :

1.1 gets a JNDI context

1.2 looks up a reference on the EJB Home Interface

1.3 narrows the reference to get a remote reference to the Home Interface

2 The Home Interface returns a reference on the Remote Interface with create method

back to Top

back to Top

3 Links

Struts framework :

http://jakarta.apache.org/struts

The J2EE design patterns :

http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/

back to Top

4 Credits

Author

I am a French developer who lives in London (

CV

).

Copyrights

The diagrams are free ! However, if you want to use it for commercial purposes, please send me an

e-mail

.

Otherwise, you can use it if you add the following credits :

Diagrams by Jean-Michel Garnier on July 2002. Based on article by Jean-Michel Garnier in the

http://rollerjm.free.fr

web site.

back to Top

http://rollerjm.free.fr/pro/EJB_UML.html (3 de 4) [23/02/2003 23:07:18]

background image

EJB UML Diagrams

For any comments / suggestions :

Jean-Michel

Garnier

http://rollerjm.free.fr/pro/EJB_UML.html (4 de 4) [23/02/2003 23:07:18]


Document Outline


Wyszukiwarka

Podobne podstrony:
J2EE & EJB Design Patterns Craig Larman
Diagramy w UML
analiza systemow informatycznych, Egzamin z PSI, Egzamin składa się z 30 pytań i modelu UML do zapro
Diagramy UML
Diagramy w UML
Diagramy UML
Przegląd diagramów języka UML, informatyka
03 Diagramy UML
Diagramy UML
wyklad3 cpp, Reprezentacja klas y pomoc diagramów UML (Unified Modeling Language)
PSI (4 Diagramy UML)
Diagramy w UML
Tutorial How To Make an UML Class Diagram In Visio
Diagramy klas w języku UML

więcej podobnych podstron