This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Assignment component diagram question: Dependency to entity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Assignment component diagram question: Dependency to entity" Watch "Assignment component diagram question: Dependency to entity" New topic
Author

Assignment component diagram question: Dependency to entity

Charles Ohene
Greenhorn

Joined: Dec 27, 2005
Posts: 12
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30353
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Shashi Kulkarni
Greenhorn

Joined: May 29, 2011
Posts: 25

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.


SCJP, OCMJEA, PMP, Brainbench certified OO Concepts, Brainbench certified OO Design Patterns, Brainbench certified EJB 3
http://shashikantkulkarni.com/
Murali Ranga
Ranch Hand

Joined: Dec 16, 2011
Posts: 38
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
 
 
subject: Assignment component diagram question: Dependency to entity