This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes As i am drawing sequence diagram for prepare itinerary... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "As i am drawing sequence diagram for prepare itinerary..." Watch "As i am drawing sequence diagram for prepare itinerary..." New topic
Author

As i am drawing sequence diagram for prepare itinerary...

veena madhukar
Ranch Hand

Joined: Apr 28, 2006
Posts: 86
I have been looking at Prepare Itinerary to be made up of the following tasks:

1> Search Itinerary -- Use SLSB (search data would be in httpsession for web client; for application client -- storing search data is not a problem);
2> Booking Itinerary -- Use SFSB

Search Itinerary consists -- first search followed by second search (which comprises of search for flights within 1 hour of the selected flight and cost less than the same ) would be shown;
User selects the flights; till user select seats;

Booking Itinerary -- Store the selected flight data and seat information in the Session Bean.
check if user account created, if not force him to create;
Check if user logged in, if not force him to login;
compute price;
save itinerary;

As I draw sequence diagram ...i am not getting convinced about trigerring the need for user login/ user account creation screen /process from stateful session bean.
Can anybody point me to any url or share any thoughts on invoking JSP from stateful session bean and then getting the control back???

I have almost started feeling that stateful session is required only bez of these alternative flows, as otherwise one could have managed just with the stateless session bean.

Thanks in advance.
Alli son
Greenhorn

Joined: Apr 20, 2006
Posts: 1
What.. invoking JSP from stateful session bean ??
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
Hi,

That�s why I think you should not use Statefull Session Beans as controllers. This task (verify whether the user has logged on) is normally handled by a controller servlet.

Please note that I haven�t received my results yet (although I have completed all 3 steps). But I recommend you re-think your controller strategy.


Cleuton Sampaio<br />Systems Architect<br />(SCEA,SCWCD,SCBCD,MCSE,MCSD)
veena madhukar
Ranch Hand

Joined: Apr 28, 2006
Posts: 86
In which case the entire controlling logic for Prepare Itinerary would be sitting in the Controller Servlet...right.

But i am really curious (even from the point of view of understanding ...not just from solving this assignment) how could one address this requirement of bringing up the login / create customer profile screens if one were to go ahead with using stateful session bean instead of using Http Session. Java Ranchers....pls. share your thoughts. how could one manage with the controlling logic? where could the controlling logic be sitting then?
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1167
Hi Veena,

You said:


In which case the entire controlling logic for Prepare Itinerary would be sitting in the Controller Servlet...right.



I agree with you that we need to be careful about the scope of logic which one controller holds.

I'm thinking about the Intercepting Filter, Application Controller and Context Object patterns as being responsible for the authentication and access control for the customer side.

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
veena madhukar
Ranch Hand

Joined: Apr 28, 2006
Posts: 86
I am not very clear about the usage of session bean for booking, if the controlling logic will reside in the controller - servlet class;

Prepare Itinerary = Search Itinerary + Booking Flights (unpaid but price computed saved itinerary);

Any thoughts???
 
jQuery in Action, 2nd edition
 
subject: As i am drawing sequence diagram for prepare itinerary...
 
Similar Threads
questions about Prepare Itinerary and lay over
caching flights for performance
stateful session bean
Passed Part II and III
Saving Itinerary, yet again