J2EE optimisation by pre-fetching pages

Hi,
I´m working on a J2EE application/site that generates pages
dynamically. Although the pages vary significantly, the sequence of
pages for a particular user is generally predictable. The client is
worried about performance and wants the design to predict the next
page, generate and cache it, so that it is ready for the user´s
request.
The pages are, at base, JSP pages (whose content depends largely on
information in the user´s session that, over a single session, remains
constant). Is there any way to do what the client wants (with a
reasonable amount of effort)? I can't see how to work around the
demand-driven nature of a J2EE server (in this case Weblogic's).
Presumably, if there is a solution, it involves sending all requests
to a Servlet, rather than the JSP page directly, and somehow the
Servlet handles caching and prefetching. But that means the Servlet
has to fake a SessionContext and redirect it to the appropriate JSP
page (I think). Has anyone done this?
Thanks,
Andrew

Also, take a look at Tangosol's Coherence caching product:
http://www.tangosol.com/products-clustering.jsp
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"Andrew Cooke" <[email protected]> wrote in message
news:[email protected]...
Actually, this reply is a bit too self-critical. It also makes sense for
this data to be inside the JSP page for other, more sensible, reasons too.
The data from page to page are very variable, requiring individual
formatting.
Andrew
"Andrew Cooke" <[email protected]> escribió en el mensaje
news:[email protected]...
Hi,
Thanks for the reply. Unfortunately it's difficult to know which data
to
cache until the page is generated, because the information that drivesthe
page generation is inside the JSP page, not the database. In otherwords,
when the page is generated, data within the page pulls the informationfrom
the database.
A cleaner design, obviously, would be to have everything in the
database,
but for practical reasons (limited resources - I am working for a small
company in S. America, with a tight deadline and no other Java/JSP
knowledge - that mean the closer this is to a "traditional" page-by-page
website, the more likely it is to work) this is not possible. Or, atleast,
it needs a very strong argument to change the approach (and I'm not sure
this is it).
Does that make sense? It means, as far as I can see, that only way to
prepopulate the beans is by pre-generating the page...
Thanks,
Andrew
<[email protected]> escribió en el mensaje
news:[email protected]...
Why don't you simply cache the data needed to render these
pages? Unless your rendering mechanism is slow by itself, for a
regular JSP which renders some pre-populated beans, pre-fetching
shouldn't make much (if any) difference.
Andrew Cooke <[email protected]> wrote:
Hi,
I´m working on a J2EE application/site that generates pages
dynamically. Although the pages vary significantly, the sequence of
pages for a particular user is generally predictable. The client is
worried about performance and wants the design to predict the next
page, generate and cache it, so that it is ready for the user´s
request.
The pages are, at base, JSP pages (whose content depends largely on
information in the user´s session that, over a single session,
remains
constant). Is there any way to do what the client wants (with a
reasonable amount of effort)? I can't see how to work around the
demand-driven nature of a J2EE server (in this case Weblogic's).
Presumably, if there is a solution, it involves sending all requests
to a Servlet, rather than the JSP page directly, and somehow the
Servlet handles caching and prefetching. But that means the Servlet
has to fake a SessionContext and redirect it to the appropriate JSP
page (I think). Has anyone done this?
Thanks,
Andrew--
Dimitri

Similar Messages

  • Took delivery of imac yesterday with pre-installed Pages, Numbers and Keynote. App store says they need updating but won't let me because I've never owned the major version of the software. I have paid like anyone else, so why can't I update?

    Took delivery of imac yesterday with pre-installed Pages, Numbers and Keynote. App store says they need updating but won't let me because I've never owned the major version of the software. I have paid like anyone else, so why can't I update?

    You must be signed into the Apple Store with your Apple ID or it won't work.
    and
    How to deal with a 100 Store Error:
    Try here >  Mac App Store: "An unknown error occurred (100)" when purchasing
    If that doesn't help, open the Finder. From the Finder menu bar click Go > Go to Folder
    Type this exactly as you see it here;
    ~/Library/Caches/com.apple.appstore/Cache.db
    Click Go
    Move the Cache.db file to the Trash.
    Now here:
    ~/Library/Preferences/
    Click Go
    Move these files from the Preferences folder to the Trash.
    com.apple.appstore.plist
    com.apple.storeagent.pllist
    Now here:
    ~/Library/Cookies
    Click Go
    Move the com.apple.appstore.plist file from the Cookies folder to the Trash.
    Empty the Trash, try the App Store.

  • Pre-made pages in iWeb like the ones in homepage

    Before I got iWeb I used homepage a lot. There seems to me a lot more premade pages in homepage like baby announcements, resume pages, educational focused pages.... are these types of things available in iWeb? All I see for any theme is the same 8 pre-made pages. Am I missing something?

    No you are not missing anything, there is a limited number of themes and each theme has the same format of page "welcome about blog photo...) but iweb offers more flexibility for modification than do the pages in homepage.
    You can continue to use pages in conjunction to iweb just put a link in your site to the pages you want people to see and that will do it.
    There are also some templates available for purchase on a few sites. 11mystics comes to mind.
    Also for ideas of what can be done take a look at
    http://web.mac.com/will.englefield/iWeb/iWebUserSites/Home.html
    this site has hundreds of sites, and there is a thread "post your iweb site here that a lot of people have contributed to.
    Hope this helps
    Mireille

  • Pre+ help pages don't work

    Does anybody know why the Palm Pre+ help page don't work? Everytime I ask for help on ANY subject all I get is a message that reads "Failed to load requested page"
    I guess the palm is trying to load a page from the internet, but the server can't provide/find it. This implies that the problem is probably at HP's end
    Post relates to: Pre p100ueu (O2)

    Hello
    May you pack the xxx.Pages document thru the "Make an archive…" item of the Finder's menu File?
    Then, attach the created zip file to a mail and send it to:
    koenig PERIOD yvan AT tele2 PERIOD fr
    I will try to revive it.
    Yvan KOENIG (from FRANCE mardi 11 décembre 2007 18:12:34)

  • Has Anyone Created a Successful Pre-Order Page?

    I've submitted my second book, and still, I'm unable to get the pre-order function to work. Or maybe I'm misunderstanding it?
    I assume that if I allow pre-orders when I create my package in iTunes Producer, that after I upload all my assets, etc., and they successfully import, that a pre-order page for that book should appear on iTunes.
    However, for both of my books, this has not happened. They still are pending approval, but there has never been any sort of pre-order page on iTunes in the bookstore.
    Has anyone successfully created a pre-order for one of their books titles? I've tried contacting Apple but only get a generic response that doesn't really explain anything. ; (

    There is a related thread here:
    https://discussions.apple.com/thread/3811505?start=0&tstart=0
    You can set a pre-order start date for each territory in iTunes Producer. According to the iTunes Producer 2.6 User Guide, the date must be earlier than the sales start date. If you don't want to offer pre-order, you are supposed to leave that date blank.
    The user guide says that, if you set a pre-order date, the publication will not be shown in the store until that date. It does not say that, if you set that date, the book will be shown starting on that date (or any date before it becomes available, for that matter).
    The user guide also says the following:
    Important: Pre-orders require minimal manual production work by iTunes. When you deliver a book that is
    available for pre-order, contact your iTunes Technical Account Manager. Pre-orders must conform to the
    following specifications:
    All assets (EPUB, iBooks format, cover art, and screenshot files) are due up front.
    You can only create pre-orders with the first, initial delivery of the book package.
    You cannot make any changes to the pre-order once you deliver a book package to the iBookstore with
    a Pre-Order Start Date.
    Each territory where you are sending a pre-order (each territory where you defined a pre-order start
    date) must be priced at a valid price tier.
    Do not send pre-order start dates for territory products that have been marked not cleared for sale. Only
    deliver book packages with pre-order start dates assigned for territory products that are cleared for sale.
    Given the current track record in getting books into the store, I would guess that pre-order is something that would only happen for blockbuster titles from large publishers, where actually a significant volume of pre-orders can be expected. For the pre-order to go through into the store, someone still has to review the book, which isn't worth doing for something that sells a few dozen copies a month.
    Michi.

  • Pre-fetching of website stopped working, yet I have it selected as enabled

    Hi,
    Until today, every time I used firefox, once I'd start writing the address of the website, the address would come up entirely and I'd just have to select it. I think it's called pre-fetching of website?
    Today, it just stopped working but I have not changed any of my settings.
    Best,
    Sandrine

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Pre-fetch question

    Hi,
    Q1>Whenever we execute some querries, there is a roundtrip time involved to get the desired data from server which is taking much of the execution time.
    Therefore we had to investigate on the problem and found out that ORACLE OCI allows prefetch at the client side and it is possible to build a client side cache by setting the "prefetch" attribute for the allocated transaction statment.
    I wanted to confirm as to whether implementing the same, can we have significant performance gains..
    Q2> What is the difference between fetch and prefetch? If fetch retrieves 5000 rows the will prefetch also retrieve 5000??
    Any help will be appreciated
    Thanks

    Reading the doc pointers should help, but in a few words, with or without prefetch you are still calling OCIStmtExecute and/or OCIStmtFetch to get the rows, and you get the same number of rows in either case. Assuming you retrieve all rows one at a time, out of 5,000 total rows, OCI will by default do 2,500 round-trips to the server, because by default one extra row is transfered from the server to the client, and the next OCIStmtFetch call will get that row locally from the prefetch-cache.
    Pre-fetching more rows further reduces round-trips at the expense of using more memory client-side. On win32 XP, I noticed that pre-fetching more than 32KB worth of row data (the actual row count depends on the row size) doesn't provide any improvement.
    Using array defines is an alternative to pre-fetching which is a little faster. --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • CryptoAPI pre-fetching crl details

    My question is that I can’t see crl pre-fetching working the way it is described as working, or I am misunderstanding the description.
    If I force a crl retrieval via certuil –verify (I have also tried CertGetCertificateChain), I can see new cache files generated at the location specified for the disk cache on Windows 7: c:\users\<username>\AppData\LocalLow\Microsoft\CryptnetUrlCache.
    I can see the required crl in there, which has a 4 hour lifetime and nextPublish about 1 hour before certificate expiry. So far, so good.
    The thing is, I never see an attempt to retrieve that crl again if I take no more action and just watch the cache. From reading the documentation my understanding is that pre-fetch should retrieve the crl before it is needed. Then, if the crl isn’t used after
    the initial pre-fetch cycle, it won’t be pre-fetched again. Also from what I could make out, I thought some sort of background retrieval mechanism periodically iterates over all items in the Cryptnet cache to see if pre-fetching needs to be performed. 
    BTW I’m not clear what actually would do this retrieval, the docs for CRYPTNET_URL_CACHE_PRE_FETCH_INFO structure docs hint that it might be “the Cryptnet URL Cache (CUC) service”, whatever that is (or was)- can't find any info on it or how often this might
    happen.
    I have to specifically attempt to make another CertGetCertificateChain/certutil –verify type call before I can see a crl retrieval attempted (http request and local cache update). With CertGetCertificateChain, I get a dwErrorStatus of 0, and dwInfoStatus of
    0x00000100/cert_trust_has_preferred_issuer, so I don’t see any problems with my verification. My crl has no AIA, only CDP listing a http location (no delta crls).
    As mentioned, first retrieval I see the cache files and http request, but no updates in the local store or attempts over the network after that. I was expecting  an automagic background HTTP request with conditional GET to occur sometime after nextPublish
    time - am I misunderstanding the concept of pre-fetch?
    Thanks!
    J

    Hi J. Crown,
    For this question, it is recommended to post in MSDN forum for more help, they focus on Windows Desktop development issue:
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=windowsgeneraldevelopmentissues
    Thanks for understanding.
    Alex Zhao
    TechNet Community Support

  • Pre-populate page

    I have a region sql report which shows summary info. In this report, there is a column called "serial_number". When a user clicks on this serial number, I want to pre-populate a second page with all fields pertinent to this serial number so as to save typing for the user. Searched the forum to no avail. Using htmldb 2.0 and 10g. What is the best way to accomplish this?

    Try using the Form and Report on a table wizard.

  • Optimise keynote files - or Pages for that matter

    I'm curious if there exists an easy way to optimise a keynote - or even a pages file. If you cut and paste a 2000mp image into a slide, but you resize it, is there a way that iWork apps can resize the image when you export it to pdf or another format?

    you should read TD's discussion in this thread - http://discussions.apple.com/thread.jspa?threadID=1243085&tstart=90 - to see the other options and ot understand teh potential issues of directly accessing the iPhoto library
    Larry Nebel

  • New MacBook Pro with Retina pre-installed pages, keynote & numbers. Can I get them for free on my iMac?

    I've just bought a new MacBook Pro Retina which comes pre installed with pages, keynote and numbers. If i want to get them on my iMac will i have to pay for them?

    No, sign into the Mac App Store on your new computer with the same Apple ID and the Mac App Store should offer you the download at no cost in your Purchased apps section.
    I guess the rub would be if you didn't have the apps pre-installed to the correct Apple ID account.
    Jerry

  • Switchin pre-defined Page Layout

    Hi,
    Is it possible to swich a page from one layout to the other without recreating the whol page ...
    So i have a Document with multiple pages .. I use the Ad page to ad for example a tekstpage .. type my text. And the want to change that page from a text page to a pre-defined other layout like a faxpage .. without losing my text.
    I'm Using Pages 2
    PowerMac G5 SP 1.8   Mac OS X (10.4.7)  

    Patrick,
    I think I understand what you want. Correct me if I'm wrong: you want to be able to begin typing on a template page, then later switch that page for a different template while retaining your text.
    I'm afraid that's impossible with Pages (or pretty much every other template-based application I've used). The only solution I can think of us to copy your text from one template and paste it into another.
    -Dennis

  • Safari for iPod Touch now tries to reload, wipes out pre-loaded pages

    Before Friday, June 4, I loaded important web pages into my iPod before I left home while I had an internet connection, and as long as I don't try to refresh them, they stayed in the browser. After Friday, Safari tries to reload them from the server when I am not connected, and thus wipes them off. I save bus schedules in there and since there is no wifi on the bus, I need those schedules to remain in the browser, and they did until Friday. Is there a setting for Safari such as "Do not try to download from server when offline" that was added that day? Thanks.

    HI and Welcome to Apple Discussions...
    From the Safari Menu Bar click Safari/Mail Contents of this Page. In your e-mail client, send that file to yourself.
    Go here for instructions to use your iPod as a storage device: http://support.apple.com/kb/ht1478
    Connect your iPod to your computer. Double click the iPod icon when it appears on your Desktop.
    Copy/paste the contents ONLY of the e-mail to a new text document then File/Save As. Give the document a title: Bus Schedules. Now move that file to the Notes folder in your iPod.
    More help here in case you need it for Storing and reading notes - iPod
    Carolyn

  • Setting up Photo album on a pre-buildt page?

    I built a photo album using the DW Command> create photo album and now I have my folder with pages, thumbnails and images. I have a pictures page built for my site already and have read a dozen tutorials but can't figure out how to import my album folder info into my picture page. Is this possible? How do I make my photo album look like the rest of the pages in my site?
    Thanks

    Not to put too fine a point on it, the Dreamweaver Create Photo Album command is a pile of garbage. And no, I'm not likely to offend Adobe engineers by saying so. They agree that the code it creates is completely out of date and has no place in Dreamweaver. It was created in the days when websites and web design were much less sophisticated than today. It's not used by professionals, who are the main target market for Dreamweaver, so it was never improved. A much better solution is in the Adobe Output Module in Bridge CS4, which is installed by default with the latest version of Dreamweaver.
    Unfortunately, if you want to use the Create Photo Album command in Dreamweaver, you're entirely on your own. It cannot be used to integrate with an existing site. You need to generate the photo album, and then style each page individually to fit in with the rest of the site. Decide to add a few new pictures, and you have to start all over again. Sorry, but that's the way it is.

  • Pre loading pages (Enhancement request?)

    What's the usual way to preload an APEX page?
    Both Metalink and Ask Tom demonstrate what I'm after. Basically, when I first navigate to a link, I get a 'Your page is being loaded' message which then automagically refreshes to what I was looking for when the page load is complete.
    They seem to be independant pages and the desired page then does appear to display without delay.
    How can I acheive this behaviour in an APEX environment?

    Hi Ben,
    Have a look at the following:
    http://javascript.internet.com/page-details/preload-page.html
    Regards
    Andy

Maybe you are looking for