Sun Certified Developer for the Java 2 Platform
Sun Certified Enterprise Architect for the Java Platform, Enterprise Edition 5
SCEA 5.0, SCBCD 5.0, SCWCD 1.4, SCJP 5.0
OMG-Certified UML Professional, Intermediate; OMG-Certified UML Professional, Fundamental
SCEA 5.0, SCBCD 5.0, SCWCD 1.4, SCJP 5.0
OMG-Certified UML Professional, Intermediate; OMG-Certified UML Professional, Fundamental
From my understanding, you would want to display on your component diagram only these components that are relevant to your application.
Sun Certified Developer for the Java 2 Platform
Sun Certified Enterprise Architect for the Java Platform, Enterprise Edition 5
Ashu Sharma wrote:Thanks for your input Ronald and Janis.
My Solution is also similar to that of Ronald's. My Solution comprise of following
JSP--->Backing Beans--->ServiceLocator---->SessionBeans----->DAO--->Entities
In class diagram i am planning to show the Session Bean layer and onwards(Boundaries,Controls and Entities only).
Q. Should i include the backing beans also in the class diagram.
In component diagram i am showing All the layers starting from JSP to DAO(and entities)
I am little confused about Sequence Diagram also.
Q. Should it show the JSF controller servlet
user--->controllerservlet--->backing bean---> and so on
or i should ignore the controllerservlet since it is assumed to be there as a part of framework.
Thanks
Ashu
Jason Marston wrote:
My take on this is:
If you use injection you don't need the service locator. (Injection can be shown in a simple annotation)
Jason Marston wrote:
Ashu Sharma wrote:Thanks for your input Ronald and Janis.
My Solution is also similar to that of Ronald's. My Solution comprise of following
JSP--->Backing Beans--->ServiceLocator---->SessionBeans----->DAO--->Entities
In class diagram i am planning to show the Session Bean layer and onwards(Boundaries,Controls and Entities only).
Q. Should i include the backing beans also in the class diagram.
In component diagram i am showing All the layers starting from JSP to DAO(and entities)
I am little confused about Sequence Diagram also.
Q. Should it show the JSF controller servlet
user--->controllerservlet--->backing bean---> and so on
or i should ignore the controllerservlet since it is assumed to be there as a part of framework.
Thanks
Ashu
My take on this is:
If you use injection you don't need the service locator. (Injection can be shown in a simple annotation) In the class diagram, you show classes that directly relate to or are derived from the problem domain (plus a few orchistrating classes. xxxControler, xxxManager etc). Technology belongs in the Component diagrams In the Component diagram you show all the components, JSP, Session, etc. In the sequence daigrams, you show every class in your design (you may split the sequence diagrams of course to keep the ones representing the use cases simple SSDs)
Of course some of the above is different in real life, it seems to me that SUN want the class diagram to be a Technology Independent Design. The Component diagram to reflect the technology design descisions. The sequence diagram to show how all the classes collaborate to get the job done.
Your language suggests you are using the Rational approach, whilst a good approach, consider if it shows what SUN are asking for on this assignment.
I don't show on any of my diagrams classes that are a part of the underlying platform or framework I am using. (I show the JSF and the ManagedBean. the FacesServlet is provided and not something you are designing. A simple annotation mentioning the FacesServlet in my opinion should suffice)
To use your notation I would show
Actor ---> JSF Page --> ManagedBean --> SessionBean --> DAO --> Entity
Remember a JSF Page is compiled into a Servlet if it is JSP based. Facelet based JSFs are of course different (and not a core part of JavaEE)
A final reason I would show the JSF Pages is that the Case Study in the Cade book shows JSPs
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|