Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Showing WAR/EAR files in a Component Diagram

 
srinivas katta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I want to know how war and ear files are shown on a component diagram. As component diagrams show only dependencies, it can be inferred that a war/ear file depends on its source/compiled files. Is this a correct representation?
source file components <- class file components <-war/ear files?
In Java, since a source file has the same name as the class file (except the extension), it may be redundant to show both. So would you have a generic component that represents either source file or class file or both?
This is a general question that relates to a project- not necessarily SCEA assignment. To phrase the question better: In a typical web application what do you show on a component diagram (assuming that a component diagram is required)?
Thanks in advance
Srini
 
Meg I
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I don't think it is necessary to show WAR/EAR files on a component diagram. If you are wanting to demonstrate where files may be deployed to, you can combine the component diagram with a deployment diagram to show which components are deployed to the web tier and which are deployed to the EJB tier.
You can demonstrate what type of component you are representing by using stereotypes
eg: <<JSP>> or <<servlet>>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic