Hi Guys,
I'm also woking on Part 2 - Dream Car Assignment. I have completed Class/Seq/Deployment Diagram. And I'm stuck in Component Diagram. I have not done Component Diagram before. As SUN has instructed to include (
servlets,
jsp, pojo, design pattern implementation) in the Component Diagram, what do you advice?
1. Is it enough to have one Component Diagram? In that case the no of components will be more (so as to include servlet, jsp, pojo, BusinessDelegate, DAO, Entities, SessionFacade).
2. Mark Cade, Simon Roberts book shows multiple Component Diagrams. - But I really cant digest Component Diagrams for every usecase. Sequence Diagrams do that job.
I also read that "
a Component has a encapsulated independent units that provide/implement one or more interfaces". Based on this definition, we can only think of SessionBean as a component, because only they have and implement remote interface, and we can use the lollipup notation between the components.
But what about servlets, jsp, pojo, DAO and Entities. They dont even have any (provided) interface? So, how do we show them? Just use dottled line to show the dependency between other components? In that case
a component Diagram will look a lot similar to Class Diagram with various components (servlets, jsp, DAO, SessionBean, Entities, BusinessDelegate) and the dependency between them.
So, what do you guys suggest? Please give me some advice, as there are very little document available in the internet for component diagram for J2EE.
I hope I'm not discussing anything illegal (portion of the real assignment) and my question is very generic and I hope this conversation will be useful to all those who are doing Part 2.
Regards!
Nithiraj.