It's not a secret anymore!
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
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

Assignment component diagram question: Dependency to entity

Charles Ohene

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

Joined: May 26, 2003
Posts: 33125

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Shashi Kulkarni

Joined: May 29, 2011
Posts: 26


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
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
I agree. Here's the link:
subject: Assignment component diagram question: Dependency to entity
It's not a secret anymore!