• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

matter in class verses component diagram

 
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
kundan varma
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic