• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Component Diagram and Part 2

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,
Do we need to show each Session Beans as separate component from corresponding entities in the component diagram? For example I have 3 session beans (Managers) and 3 entities. Do I have to show 6 separate components in the "business logic and persistence" tier on the component diagram unlike Mark cade's example where it shows SessionBean and entity bean as combined/single component.

Thanks
Amit
 
Kumar Amit
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, which of the following should be shown in the component diagram:
1. JSF <<framework>> as a component
2. FacesServlet <<controller>>as a component
3. or none of the above
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am showing 2 boxes for 2 modules of JSP and then controller and all managed bean at the web tier along with important filters/listeners/handlers. I did not find anything else to be shown at that level. The sad part is repeatation of components/classes in class diagrams and component diagram. Is it an issue?
 
Ranch Hand
Posts: 462
Scala jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not going into that much detail, my class diagram looks similar to Cade's showing jsf pages and a controller talking to session beans, I have mentioned things like logging, exception handling, auditing, etc in my assumptions.
 
Rajan Choudhary
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

will myers wrote:I am not going into that much detail, my class diagram looks similar to Cade's showing jsf pages and a controller talking to session beans, I have mentioned things like logging, exception handling, auditing, etc in my assumptions.



True, but I don't know what else to show for getting a score of 40 points -

Everything is clear in class diagram and sequence diagrams so I see component diagram a complete duplication of classes/objects.
 
Kumar Amit
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rajan Choudhary wrote:I am showing 2 boxes for 2 modules of JSP and then controller and all managed bean at the web tier along with important filters/listeners/handlers. I did not find anything else to be shown at that level. The sad part is repeatation of components/classes in class diagrams and component diagram. Is it an issue?


Hi Rajan,
How are you showing your controller in the component diagram's web tier like <<framework>>Faces Servlet?

Are you showing generic filters in component diagram e.g AuditFilter(intercepting), LoginFilter(intercepting) or are they specific to some business logic of your system?

Are you showing these filters/listeners in class diagram as well?
 
Rajan Choudhary
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am showing just the names in a UML component icon which means that's a component. I already that, I have 75% duplication in class and component diagram but I don't know where to keep what? As cade's book says, I am showing JSPs in class diagram and then showing one group of components for all jsps. This is duplicacy. If you have better idea, please share.
 
Kumar Amit
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rajan Choudhary wrote:I am showing just the names in a UML component icon which means that's a component. I already that, I have 75% duplication in class and component diagram but I don't know where to keep what? As cade's book says, I am showing JSPs in class diagram and then showing one group of components for all jsps. This is duplicacy. If you have better idea, please share.


I reckon you have taken the right approach. There will be some duplicacy. Few things that can make component diagram different from class diagram can be to show filters/listeners in component diagram and not in class diagram/sequence diagrams. I may be wrong. Lets ask what other people think.
BTW, which filters are you showing web tier?
 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rajan Choudhary wrote:[True, but I don't know what else to show for getting a score of 40 points -

Everything is clear in class diagram and sequence diagrams so I see component diagram a complete duplication of classes/objects.



I agree 100%. I have the same feeling that 40 marks is high for component diagram. Some of this could have been offset to deployment diagram and even sequence diagram (less marks for more work).

I am showing 'FacesServlet' only in my component diagram.
 
Kumar Amit
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,
Do we need to show each Session Beans as separate component from corresponding JPA entities in the component diagram? For example I have 3 session beans (Managers) and 3 entities. Do I have to show 6 separate components in the "business logic and persistence" tier on the component diagram unlike Mark cade's example where it shows SessionBean and entity classes as combined/single component.

This question of mine remained answered last time, so asking it again to get your opinion.
 
It's never done THAT before. Explain it to me tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic