Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Component Diagrams

 
Marcel Dullaart
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I want to show the classes that are part of a component in a component diagram. For instance I have a component, named say my-service-client.jar that contains the local and/or remote business and home interfaces to my service. In addition I have another component that contains the bean's implementation.
Now how can i model this relationship in a UML-2 component diagram?

Thanks,
Marcel
[ April 14, 2008: Message edited by: Marcel Dullaart ]
 
Juan Pablo Crossley
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why are we talking about Home and Remote interfaces? the new SCEA will ask you about EJB 3.0 which does not have those interfaces anymore!
 
Juan Pablo Crossley
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you're misunderstanding the meaning of "Component", 1 class is not really a component... and certainly not it's interfaces, you could talk about the "Cash" component which could be a lot of classes which have some interfaces to the "external" world and not even have a Cash class on it.

So, if you have a component which will lead with the banking communication it could have socket classes, bean with the implementation, some interfaces and some other utilities, this group could be named as "BankingComponent" and will be drawn as 1 component.
 
Marcel Dullaart
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Juan , thanks for your reply, but some people are still working on SCEA 2, and I do understand the meaning of a component, I'd like to express which classes make up a component.
I have class diagrams that express the relations between the several classes that make up my solution, but then I have component diagrams that show the relations between the components that the solution is divided in.
These components are only useful if they contain some classes or other artefact's, hence my question, how do I show which classes make up my components?

Grtz,
Marcel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic