aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes matter in class verses component diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "matter in class verses component diagram" Watch "matter in class verses component diagram" New topic
Author

matter in class verses component diagram

kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
HI All
I have one question will FilghtSessionBean type of class goes in component diagram or class diagram. I am a bit confused which matter goes inside class diagram and what under component. Does component diagram just shoes JSP,SESSIONBEAN,ENTITYBEAN OR real class.

Thanks for suggestions
kundan


SCJP1.4,SCBCD,SCEA,CNA
Failures are practice shoots for success.
Sanly Fang
Greenhorn

Joined: Jan 31, 2005
Posts: 21
You'd better make your component diagram pattern-oriented, which means, keep component in such a granularity so that everyone else can tell easily which patterns you are using and how they are structured.

Regarding class diagram, technology independent is a safe choice, as many others including me has done in this way.


Originally posted by kundan varma:
HI All
I have one question will FilghtSessionBean type of class goes in component diagram or class diagram. I am a bit confused which matter goes inside class diagram and what under component. Does component diagram just shoes JSP,SESSIONBEAN,ENTITYBEAN OR real class.

Thanks for suggestions
kundan


SCJP: 88%<br />SCEA Part I: 95%, Part II/III: 95%<br />SCDJWS: 98%
kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
THanks sanly
one more question. If i make class diagram tech independent then it will be very similar to BDM classes already provided with 2-3 additions.
I am still a bit confused. I have gone through a lot of docs but still not sure. Any hint to proceed in some direction without violating sun's law is most welcome.

THanks
kundan
Sanly Fang
Greenhorn

Joined: Jan 31, 2005
Posts: 21
I may not be able to give you help on class diagram since I lost all my 5 points in this part.

In general, the diagram is good as long as it meets all requirements, two aspects are important: UML semantics and OOAD.

Originally posted by kundan varma:
THanks sanly
one more question. If i make class diagram tech independent then it will be very similar to BDM classes already provided with 2-3 additions.
I am still a bit confused. I have gone through a lot of docs but still not sure. Any hint to proceed in some direction without violating sun's law is most welcome.

THanks
kundan
kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
HI Sanly
Do i have to relate these classes in the component diagram also.I mean mention those class in the class diagram in component diagram. What i mean is suppose i have a class Reservation, then do i have to show reservationEJB, ReservaionJSP in component diagram.

THanks
kundan
Sanly Fang
Greenhorn

Joined: Jan 31, 2005
Posts: 21
You don't have to, actually it's your choice to decide which objects in your design are important, and it's the important things that will be on your diagram or otherwise the diagram will become full of details and lead to messy style.

For example, in my component diagram, no specific JSP component for each page, instead, there is only a single component which stereotyped as <<JSP>>.

Originally posted by kundan varma:
HI Sanly
Do i have to relate these classes in the component diagram also.I mean mention those class in the class diagram in component diagram. What i mean is suppose i have a class Reservation, then do i have to show reservationEJB, ReservaionJSP in component diagram.

THanks
kundan
kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
HI Sanly
How you represent design pattern used in your assignment.Is it in component diagram or sequence diagram ? There you show <<pattern name>>
or <<class name>> then in note which pattern.

THanks
kundan
Sanly Fang
Greenhorn

Joined: Jan 31, 2005
Posts: 21
The patterns are in my component diagram (and supporting document).

Basically, the name of the component contains two kind of information:
1. What is it?
2. What's the pattern behind the scene
For example, ***DAO, ServiceLocator,...

On the other hand, the stereotypes hold information on how the component is implemented in term of J2EE technology, for example, <<Servlet>>, <<JSP>>, <<LocalEntityBean>>,... etc.

Originally posted by kundan varma:
HI Sanly
How you represent design pattern used in your assignment.Is it in component diagram or sequence diagram ? There you show <<pattern name>>
or <<class name>> then in note which pattern.

THanks
kundan
kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
HI Sanly
How many classes you had in your class diagram? Do you think there is any relation between reservation and ticket?

Thanks
kundan
Sanly Fang
Greenhorn

Joined: Jan 31, 2005
Posts: 21
1. 20-25 classes.
2. I make an assumption that a segment is a reservation for a specific flight. Itinerary/Segment/Flight is analogous to Order/LineItem/Product.
no "ticket" in my class diagram.


Originally posted by kundan varma:
HI Sanly
How many classes you had in your class diagram? Do you think there is any relation between reservation and ticket?

Thanks
kundan
kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
Hi Sanly
I am thinking of application(swing) client to directly connect to EJB tier.But i am confused how to maintain session and security at that time.what approach you followed. Can you give some suggestion ?

Thanks
kundan
Sanly Fang
Greenhorn

Joined: Jan 31, 2005
Posts: 21
If you choose the approach that client accesses ejb directly, you need to maintain session state in business tier or else code will be duplicated between client tier and presentation tier.

Regarding security issue, app-client could access ejb via RMI-IIOP over SSL.

You can get further information on "session management" and "RMI-IIOP over SSL" if you search this forum.

Originally posted by kundan varma:
Hi Sanly
I am thinking of application(swing) client to directly connect to EJB tier.But i am confused how to maintain session and security at that time.what approach you followed. Can you give some suggestion ?

Thanks
kundan
kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
Hi Sanly
what approach you followed for connecting application client. I am thinking of connecting directly to EJB for performance reason. But what if rmi port is blocked ? they may block it for security reason. What can be the reason for a company for not blocking rmi specific port? I will search in the forum but at the same time it would be very helpful if you can answer it, or can throw your view on this.

Thanks
kundan
Sanly Fang
Greenhorn

Joined: Jan 31, 2005
Posts: 21
It's good to let app-client access EJBs directly, many other guys (including me) opt for this solution.

Now the question becomes "how to justify your choice".

If you search this forum, you will see several answers, for example, make an assumption that app-client and EJBs are in the same intranet...

Actually, I don't think this is a serious issue because it only affect your assumptions.

For me, I make an assumption that app-client access EJBs via RMI-IIOP over SSL, and if firewall exists, the firewall permits RMI-IIOP over SSL protocol or else tunneling mechanism is applied so that the application client can call EJBs directly.

In summary, it's safe to keep things simple (simplistic, anyway, this is an exam) for this kind of issues which are not clearly described in the requirement, just put some words in your assumption section and that will be ok.

Originally posted by kundan varma:
Hi Sanly
what approach you followed for connecting application client. I am thinking of connecting directly to EJB for performance reason. But what if rmi port is blocked ? they may block it for security reason. What can be the reason for a company for not blocking rmi specific port? I will search in the forum but at the same time it would be very helpful if you can answer it, or can throw your view on this.

Thanks
kundan
kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
Hi Sanly
I still have few questions, hope i am not irritating you.
1) what does itinerary means? I thought earlier that it is all the data which comes in response to proposed itenerary. But some body told me that it is the selected data out of those available schedules which is referred to as itenerary.

2) If i use local interfaces for EJB's that is no marshalling-demarshalling business, then which approach is faster or better while accessing display data. Is it directly accessing EJB's using cmr OR using DAO pattern ?

Your views on that....

THanks
kundan
Sanly Fang
Greenhorn

Joined: Jan 31, 2005
Posts: 21
1) System responds a list of available flights(Products) as search results, customer makes choices and a new itinerary is created in memory(Order), which is then be paid and saved...

2) CMR/CMP is good when saving data into database, while DAO approach is better to be used when getting tabular data from database for display purpose (for example, searching), related pattern is ValueListHandler.

Originally posted by kundan varma:
Hi Sanly
I still have few questions, hope i am not irritating you.
1) what does itinerary means? I thought earlier that it is all the data which comes in response to proposed itenerary. But some body told me that it is the selected data out of those available schedules which is referred to as itenerary.

2) If i use local interfaces for EJB's that is no marshalling-demarshalling business, then which approach is faster or better while accessing display data. Is it directly accessing EJB's using cmr OR using DAO pattern ?

Your views on that....

THanks
kundan
kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
HI Sanly
AS you talked about DAO and ValueLIstHandler pattern, are you pointing towards FastLaneREader pattern.If yes, then in fastlanereader they are avoiding EJB tier,but in that case i have to duplicate the code for swing client. Is it possible for the fastlanereader to access DAO via stateless session bean. Can we call that a fastlanereader pattern.

Thanks
kundan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: matter in class verses component diagram
 
Similar Threads
It's possible insert Classes in Component Diagram ??
Part II diagrams
external system dependencies in class diagram
Architectural Class Diagram
Passed part II + III with 98%