This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on Component Diagram  RSS feed

Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

Hope you are pushing heard to reach 1' august dead line too ...

I have couple of questions on component diagram, can you please clarify?

1. I am using socket/interface connectors to show the relation ships b/w the components. I think this is to show the interfaces.

I am having the Managed Beans create Business Delegates. How do i show this. I think i should just use the dependency (a line with arrow) as i am not using an interface to invoke business delegate, i this case i am instantiating Business Delegate. Is this ok or do i have to use socket/interface connectors ?

2. How do i show the dependency b/w JSP and Backing Beans, I think we should just use dependency (arrow) icon and not socket/interface connectors ...

3. I am using a DAO to access some data ...should it go in the Integration layer or Business and Persistance layer ? I am following Mark cade example for component diagram. He had shown DAO's in Integration Layer and due to this i think i have to put my DAO in Integration layer.

4. If i want to show the JPA (Entity Manager) in component diagram where should it go ? Business and persistance layer or Integration Layer. A/c to Mark Cade it should be in business and persistance layer. But I think JPA (Entity Manager) is just like a DAO so it should be in Integraion layer as per Mark cade

5. If you have a DAOFactory to access DAO's where should it be represented ?

Your replies are greatly appreciated !!

Posts: 1104
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.I am just using dependancy line.

2.yah, tricky one! Also, both JSP/JSF and the managed bean belong to the same layer! i.e presentation layer. So, I am not showing any connection or line. Just putting them in the same layer. Also, in the sequence diagram, I show the flow from JSP-->Managed Bean-->...

3.In Sheil/Cade's book, wherever external stuff is accessed, it is shown with DAO via integration layer - however, the same is used for LDAP access too - technically, in that solution, the LDAP server is internal and part of SuD. So, we can deduce that it would be logical to show external and/or non-database stuff access in integration layer.

4.Per above conclusion, I think this will not be in integration layer.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!