File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Entities in Sequence Diagram ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Entities in Sequence Diagram ?" Watch "Entities in Sequence Diagram ?" New topic
Author

Entities in Sequence Diagram ?

Vinay Singh
Ranch Hand

Joined: Dec 15, 2004
Posts: 174
Hello Friends
Should we display entities discovered in class diagram like Flight,Seat etc in sequecne diagrams? Cade has not shown in his diagrams but I am not sure if this is the perfect way
[ March 16, 2006: Message edited by: Vinays Singh ]

Technical quiz and interview questions   SCJP 6 mock practice test
Ricardo Ferreira
Ranch Hand

Joined: Feb 13, 2006
Posts: 156
Originally posted by Vinays Singh:
Hello Friends
Should we display entities discovered in class diagram like Flight,Seat etc in sequecne diagrams? Cade has not shown in his diagrams but I am not sure if this is the perfect way

[ March 16, 2006: Message edited by: Vinays Singh ]


Cade has not showed entities in his diagram because yours approach was based in access the legacy systems using direct calls, wrapped by the DAO pattern to abstract the system access. Since the major part of the subsystems are java based, the application could just access the data. It is not really showed how cade�s makes yours persistence.

This is the essence of abstraction and architecture. You could explain how the system works, without any details. The big picture provide by UML models, says to you how to understand the system. In the case of cade's diagrams, you can supouse this:

- Maybe the persistence has been implemented by CORBA calls, accessing corba objects that wrapps the persistence using C++ objects.

- Maybe there are Java Objects that already implement the persistence in the subsystem, and the cade's application do not need to implement the persistence again.

Try to suppose how the system works, without any details. The can make your system more flexible, since there are no dependency between components. If you say that an enterprise bean calls an DAO component to store an customer, you are creating an architecture that provides a pool of solutions about how to implement the persistence.

If you decid to use Entity Beans (maybe because you are worried with concorrent access or distributed transactions), you can use Entity Beans. To show in the class diagram, only use the stereotype <<EntityBean>>, and in yours assumptions, write down wich type of entity is: CMP or BMP. And of course, justify it.

In the sequence diagrams, use the same approach, using the stereotypes. But remember that is not a good approach access the Entity Bean directly by the web or client tier. Use remote facades (SLSB or SFSB) accessing the Entities by local interfaces (javax.ejb.EJBLocalHome). So, in the sequence diagrams, should be something like this:

_____________________________<<SessionEJB>>____________<<EntityEJB>>
[CustomerDelegate] -------> [CustomerFacade] ---------> [Customer]

Good Luck!


Ricardo Ferreira,<br /> <br />Sun Certified Enterprise Architect<br />IBM Certified SOA Solution Designer<br />IBM Certified RUP v7.0 Solution Designer<br />IBM Certified Specialist for RUP v2003
Vinay Singh
Ranch Hand

Joined: Dec 15, 2004
Posts: 174
Thanks Ricardo. This was helpful.
Vinay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Entities in Sequence Diagram ?
 
Similar Threads
Showing JPA Entities in Diagrams
SCEA Part-2 cleared with 89%
Should I have Entity Manager in the Sequence diagram
MVC and UML : Architecture and Modeling
Getter and setter in part2