File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Assignment component diagram question: Dependency to entity

 
Charles Ohene
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am afraid to clutter my diagram with dependencies, do you have any idea about this example scenario to help me understand?

JsfFacelet --> ManagedBean --> SessionEjb --> EntityManager --> Entity --> DB

Question1: Entity (also used as DataTranferObject) is used by ManagedBean, SessionEjb and EntityManager. If I show all of these dependencies, my diagram explode. But showing only dependency Entity --> EntityManager is probably not enough. Any advice how to handle this? Imagine I have several Ejbs using entities... I have no idea how to handle this problem, please any help deeply apreciated ;-)
Question2: I think entities are important domain objects, thus I show them all in the ComponentDiagram, do you agree?

I hope I do not conflict with forum rules, but even excessive research did not get me closer to an answer.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Is this about the component diagram? If so, you can show layers/groups of objects.
2) I didn't. I showed components, not classes on the diagram. Many people disagree though and show more.
 
Shashi Kulkarni
Greenhorn
Posts: 26
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I agree with Jeanne. In component diagram just show the main components in each tier. Refer "Sun Certified Enterprise Architect for Java™ EE Study Guide" by Mark Cade and Humphrey Sheil page 173. I followed exactly the same in my assignment.
 
Murali Ranga
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read carefully the SuD instructons
I am not sure each assignment will have different instructions,
but in my case the instructions were also mentioned with examples like what Components and important components required to show on a component diagram
Based on the instructions my understanding was
Almost all the (ejbs(Entity also),servlets,jsps etc) + important (controllers/managers and design pattern implementations).
In my case each tier did not have more than 10 to 15 components and
While showing the components I had followed the Core J2EE Patterns Catalog format so that it would clearly show design patterns also
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic