• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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 ...me 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 !!


Thanks
 
Bartender
Posts: 1104
10
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-->...
so...

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!