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 Component Diagram - how detailed it should be? 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 "Component Diagram - how detailed it should be?" Watch "Component Diagram - how detailed it should be?" New topic
Author

Component Diagram - how detailed it should be?

Ahmet Emre
Greenhorn

Joined: Jun 04, 2003
Posts: 4
Here is what it asks in deliverables section of the assignment:
"Create a Component diagram that shows all of the J2EE components used in the system and their interaction. For example, what EJBs, Servlets, and/or JSPs might be needed? "
I personally do not believe that it is good idea to show each JSP, Session and Entity Beans in a component diagram.
I am wondering what you guys think? Did you guys create a component diagram that shows all JSPs and EJBs etc?
Thanks.
Rudi Vaum
Ranch Hand

Joined: May 02, 2003
Posts: 59
nope, maybe just a front controller, following Cade's design.
Because I have 2 different clients, and only one has JSPs, i'm still thinking of not showing anything at all (just a generic "Client"), or maybe using a "VIEW" stereotype - that would depict both JSPs and some Swing panels, what do u think?
Rudi
Ahmet Emre
Greenhorn

Joined: Jun 04, 2003
Posts: 4
I totall agree with you, this is what makes sense... In fact, I created a component diagram similar to what you said with major players such as view and front controller. However, I am worried that what they ask in assignment is not what we think (and what makes sense!)...
If they ask one simple class diagram without all EJBs and JSPs involved, and one component diagram with all JSPs and EJBs, there is something wrong either the way I am experiencing J2EE, or something wrong in the wording of the assignment.
I am afraid, if we come up with a component diagram that we described, they might reject it at all which is 44 points which means failure...
smercmu
Greenhorn

Joined: Feb 25, 2002
Posts: 20
I think you are missing the point of a component diagram. It is supposed to show the developers how the parts of your system interact. If you don't show the jsp's then how would a developer that the uml gets sent to know how to construct the application?
Ahmet Emre
Greenhorn

Joined: Jun 04, 2003
Posts: 4
I would think that showing each JSP or EJBs would make more sense in detailed class diagrams. And you have more options in terms of showing relationships in class diagram than component diagram.
Rudi Vaum
Ranch Hand

Joined: May 02, 2003
Posts: 59
how will u show a jsp in a class diagram?
Louis Fegun
Ranch Hand

Joined: Aug 18, 2001
Posts: 60
I agree with Scott, the component diagram should at the minimum indicate the component technologies used to realize the design. As for JSP stereotype in a class diagram, that will be way out. You could have a "view" stereotype instead to decribe your jsp component classes.
Louis.
Nalla Senthilnathan
Ranch Hand

Joined: Jul 13, 2003
Posts: 40
Originally posted by Ahmet Emre:
I would think that showing each JSP or EJBs would make more sense in detailed class diagrams. And you have more options in terms of showing relationships in class diagram than component diagram.


See whether my post in
http://www.coderanch.com/t/150649/java-Architect-SCEA/certification/purpose-Component-Diagram
is of any help.
Nalla
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Component Diagram - how detailed it should be?