This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
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.
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