File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes FLIGHT LIST --- display the entire list 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 "FLIGHT LIST --- display the entire list" Watch "FLIGHT LIST --- display the entire list" New topic
Author

FLIGHT LIST --- display the entire list

veena madhukar
Ranch Hand

Joined: Apr 28, 2006
Posts: 86
I plan to show the entire search result list of flights to the user in his screen. Any comments on this as the list could be big sometimes especially when there are lot of lay over is possible.

Basically the entire search result is sent to the client tier without using patterns such as page by page iterator or anything like that.
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
I have two advices:

1) Forget about what type of client is using the system. They want to know how your solution supports both clients.

2) Think in coarse grained messages!


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

Joined: Apr 28, 2006
Posts: 86
Thank you.
If we think of coarse grained messages...it would appear that we are not taking into account the limitations that one needs to account for in a web applications as the client could be browsing from any kind of m/c with minimal configurations.
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
Hmmmm. Interesting point of view.

But there is nothing on the requirements about PDA or cell phone (WAP) clients. But this can be handled by the Web Tier components.

IMO we must show how our solution addresses both kind of clients, so, they are not interested in the Web Tier.

BTW, I have uploaded my assingment yesterday (August 29, 2006)

Cleuton (Brazil)
veena madhukar
Ranch Hand

Joined: Apr 28, 2006
Posts: 86
____________________________________________
IMO we must show how our solution addresses both kind of clients, so, they are not interested in the Web Tier.
___________________________________________________

I did not understand what you mean by "they are not interested in the web tier".
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
I was refering to the sequence diagrams.

It is stated in the assignment: "Your architecture and design will be graded on how well it supports both web clients and application clients, as well as, supporting all of the requirements", so the important thing is to create an architecture that supports both clients with reusable components.
veena madhukar
Ranch Hand

Joined: Apr 28, 2006
Posts: 86
I have a question regarding the data from web tier. Hopefully i am not violating the rules by asking this question.

Let us say the search is done and the result is fetched by making a series of calls like

User --> JSP --> Servlet Controller --> Action --> Business Delegate --> Session Bean etc.

Next time when details are asked, i would like to do search within the earlier fetched result. Then will the following be OK?

User --> JSP --> Servlet Controller --> Action --> Detail JSP.

Kindly tell me where the search result which was retrieved earlier will be available in the web tier? Will it be in the servlet controller class?
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
Well, you could make the first action put the results inside HTTP session. That�s the way I do in my projects.
Sub swamy
Ranch Hand

Joined: Oct 02, 2002
Posts: 121
When the search list becomes too big to be handled - can't we can introduce pagination - guess this would allow us to show say n records per page,with an option to navigate to the next/previous page(s).

As for storing data in session - would like to know how correct it is. When we work on an application for which the user base is going to be atleast a few thousands, would it be okay to store the search results in session ?
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
Well, you could store the user session�s data inside a database and keep only the session identification.

But this approach has the downside of bad performance.

I have assumed that a flight list will not be too big, based on my actual experience. If the user was allowed to search all flights from Rio to SFO independent of date, then a big list will be created. But, if you read the requirements, that�s not the case.

If you are concerned about load distribution, consider that most J2EE servers in the market support session migration.

And about your question, yes, this is correct. I have worked in the past with high demand Web Sites using HTTP session to store data. The session�s data are kept in the Web Tier, not the client. It is possible to store state in the client, embeeded in Hidden fields, but this is not the case.
veena madhukar
Ranch Hand

Joined: Apr 28, 2006
Posts: 86
the data is stored in the web tier not in the client as embedded variables.
____________________________________________________________

By storing data in http session in web tier (Front Controller)...they will be available for both application clients and for web clients ...right. Any thoughts ?

Can anybody throw some light on how this will be better over storing session data in stateful session beans?
 
jQuery in Action, 2nd edition
 
subject: FLIGHT LIST --- display the entire list
 
Similar Threads
Sending flight list details to the client....
display a dynamic search page
Displaying records
Need help regarding s:select tag list
Search Function doesn't work