Any ideas to cache  records in memory or something?

HI,
I have a question about keeping records off the database.
i have a bean that opens up the recordset puts it in a vector and returns the vector to the jsp from whence it was called.
But the problem is that these database queries are truly unnecessary. If i could update the recordset say once a month i would be set.
my QUESTION is does anyone know any strategy for storing the recordset in memory some how ?
each user might need a different recordset.
however i could possibly reuse a recordset of about 500 records from Oracle for 1 user but if the user chooses to look at another topic then i would possibly have to refersh that recordset with different info based on a different primary key.

Thanks.
QUESTION 1:
I have been using a Vector to store recordsets.
The bean method would call a sql statement in another class and loop through the resultset - insert everything as a String into the Vector and return the vector to the JSP page. is that how you would do it?
Are Vectors serializable? is it possible to implement your solution by caching the Vectors in an HttpSession? or is this restricted to an arraylist
QUESTION 2:
You say I should store the arraylist into the HttpSession -
I just want to double check how you implement this.
Do you mean that I should have a bean that implements serialiable and instantiate the bean in session scope ?
with <jsp:useBean id="j" etc etc scope="session" > and everytime the person goes to a page with this instantiation it will just pick it up out of session instead of requerying the db.
to change the primary key of query in the array list I would pass a different id to the bean and would it automatically know to requery and populate the arraylist?
Thanks
Stephen

Similar Messages

  • Brand new ipad 3 can't slide to unlock, any ideas?

    I've got a new ipad 3 64gb, less than 24 hrs old. it has sat idle for a couple of hours. awake button works, but not the slide to unlock. can't power it down either for the same reason. any ideas? Hard restart worked.

    I think something is wrong with your iPad. You either let it run dead and turn it on, or more quicker take it to the Apple retail store or Genius Bar.

  • I keep trying to send emails and it says its rejected by the server because it doesn't allow relaying... Any ideas how to fix?

    I keep trying to send emails and it says its rejected by the server because it doesn't allow relaying... Any ideas how to fix?

    There is something else that can cause this issue. Check the outgoing mail server setting. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • Brand new iPhone 4 won't work In iTunes, it says "must restore". Any ideas?

    I bought a new iPhone 4 from Telus and they switched it from my old 3GS. Once I got home I plugged it into iTunes and it's it can't read iPhone need to restore. I have 4.3.3 os. Any ideas? I am afraid there is something wrong with it.

    I have not yet, I read that someone has done it 3 times and it still says to restore. Couldn't hurt to restore, just wondered if it was a known issue. Don't want to loose any info.

  • Every time I right-click an image in Firefox 3.6.12 to view image size info it says "Unknown (not cached)". Any ideas on why this could be happening and how I can stop it? My OS is Ubuntu 10.10. If you need any more info let me know.

    Every time I right-click an image in Firefox 3.6.12 to view image size info it says "Unknown (not cached)". Any ideas on why this could be happening and how I can stop it? My OS is Ubuntu 10.10. If you need any more info let me know.

    Is the disk cache and the memory cache enabled?
    You can check these prefs on the about:config page.
    * http://kb.mozillazine.org/browser.cache.disk.enable
    * http://kb.mozillazine.org/browser.cache.memory.enable
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    Your More system details list shows two outdated Flash plugins that you should remove and update to Flash 10.1 r102 or at least remove 10.0 r45 and wait until your distribution offers a 10.1 r102 update.
    # Shockwave Flash 10.0 r45
    # Shockwave Flash 10.1 r85
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • My i phone 4s will let me download free apps but when i try to buy an app it asks for my billing imformation and tells me that the. Imformation i typed in does not mach my bank records. Ive also tried using my wifes. Any ideas

    When i try to buy an app from the app store it ask for my billing imformation and when i type everything in it tells me the imformation does not match my bank records. Ive also tried using my wifes card to buy apps and it says the same thing. Any ideas?

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Are you putting in the address where the bank sends the monthly statement?
    Apple's servers are very picky about the format of the address. If you live in the USA, then the server is expecting the style that the US Postal Service uses. One way to do this is to use the USPS ZIP Code lookup service;
    https://tools.usps.com/go/ZipLookupAction!input.action
    Enter the address to look up the ZIP code and then copy the exact USPS output into your iTunes account information.

  • Macbook pro fails to read sd card with movies recorded on it, any ideas? I can view them in the video camera so know they are there somewhere. I am now thinking I should have formatted or initialised the new card before using it.

    My macbook pro is failing to read a new sd card with movies recorded on it. Any ideas please? A previously used SD card has downloaded without problems. I have tried using a card reader as well as downloading from the video camera itself, neither works.
    I can view the latest recordings on the video camera so know they are there somewhere. I am now thinking I should have formatted or initialised the new card before using it but didn't think of that at the time. Obviously don't want to do this now as it will wipe the movies.

    Hi and Welcome to the Forums!
    From everything you've described, you've done everything possible. Hence, I recommend you seek out your warranty support.
    Good luck and let us know.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I am trying to record a from my Macbook Air and an annoying loud sound, like a burp, will suddenly erupt from the MacBook, necessitating I start again. Any ideas on how I may stop this, or what it is??

    I am trying to record a meditation from my Macbook Air and an annoying loud sound, like a burp, will suddenly erupt from the MacBook, necessitating I start again. Any ideas on how I may stop this, or what it is??

    Click on the blue Internet Recovery in nbar's post. That is a link to what computers can run Internet Recovery.
    Do a backup,  preferable 2 separate ones on 2 drives. Boot to the Recovery Volume (command - R on a restart or hold down the option/alt key during a restart and select Recovery Volume). Run Disk Utility Verify/Repair and Repair Permissions until you get no errors.  Reformat the drive using Disk Utility/Erase Mac OS Extended (Journaled), then click the Option button and select GUID. Then re-install the OS.
    OS X Recovery
    OS X Recovery (2)
    When you reboot, use Setup Assistant to restore your data.

  • I am trying to install a program on my Mac Book Pro Retina from a Apple SuperDrive. Every time I run the installer, it says I do not have enough memory to install. However, I definitely have enough memory (186.74 GB). Any ideas why?

    I am trying to install a program on my Mac Book Pro Retina from a Apple SuperDrive. Every time I run the installer, it says I do not have enough memory to install. However, I definitely have enough memory (186.74 GB). The program takes only 550 MB. Any ideas why?

    Thanks for the clarification on the terms. I consider myself proficent at my computer, but not exactly in its inner-workings! I have 8 GB of memory installed.
    I am still confused as to why I do not have any space for the program. This is the exact error message I get: "There is not enough free space on Macintosh HD disk. The Print Shop 2 application requires about 550 MB to be installed. Free some disk space and try again."
    Thank you again for your help.

  • Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?

    Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. Also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar
    The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
    Thus, if you get it to work restore to factory settings/new iPod, not from backup                               
    You can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • My wifes iphone was too full to record a video so I upgraded her cloud storage to 20g and did mine at same time. Cloud is showing 15g free storage butshe still cannot take any mor photos as "not enough memory" What is the point of paying for the extr

    My wifes iphone was too full to record a video so I upgraded her cloud storage to 20g and did mine at same time. Cloud is showing 15g free storage butshe still cannot take any mor photos as "not enough memory" What is the point of paying for the extr

    Hello Pushtheriver,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning iCloud storage issues:
    Get help using iCloud storage
    This may also help:
    Understanding iOS device capacity
    You can sync and download many different types of content on your device. Some types of content (such as music and videos) typically take more space than others (such as notes and books). The amount of space taken by an app depends on the app's purpose; complex or graphically intense apps usually take more space than simpler apps.
    If your device is near its capacity, you can remove some of the less used content to make room for more.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • IPhoto won't read any of my portrait photos, only the landscape ones. They only show up as black portraits and I already erased them off my memory card. Any idea how to retrieve them or fix the problem?

    I am using a 16 GB Sandisk Extreme Pro SD Card with a Canon EOS 60D camera and my files are saved as .raw on the memory card. I imported all my photos into iPhoto and then clicked the 'delete photos', as I always do after I imported by pictures, but when I went through my pictures I saw some black rectangles. It appears that all my portrait-orientated photos are just black whereas my landscape photos are perfectly fine. My portrait potos did turn up on my camera screen when I checked them through as I took them but now they're gone. Any idea if this is a software problem with iPhoto, an error with my memory card or even my camera? I've experienced this problem a bunch of times and it's really starting to annoy me that I'm losing all my photos.

    What version of iPhoto?
    Select one and rotate it. Then rotate it back. Does that make it appear? 
    A much better work flow is the keep the photos after importing.  Check the success the import, wait for at least one successful backup cycle then use you camera's format command to reformat the card
    LN

  • I'm attempting to sync several albums from itunes to iphoto.  When select to sync all albums it copies over the previous recorded album.  I tried to sync the Albums individually and the same thing happens.  Any ideas on how to sync my albums?

    I'm attempting to sync several albums from itunes to iphoto.  When select to sync all albums it copies over the previous recorded album.  I tried to sync the Albums individually and the same thing happens.  Any ideas on how to sync my albums?

    Hi NWL1,
    Thanks for the question. If I understand correctly, the iPhone won't update and is stuck. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    Thanks for using Apple Support Communities.
    Have a great day,
    Mario

  • HT204291 Using Azul media player app on my ipad  Apple tv will only display sound but not video from movies.  Any ideas on a fix.  I set mirroring to on but it still does not display video.  It will display photos and video recorded from my iphone.

    Using Azul media player app on my ipad  Apple tv will only display sound but not video from movies.  Any ideas on a fix.  I set mirroring to on but it still does not display video.  It will display photos and video recorded from my iphone.

    Here are the steps for AirPlay:
    Before starting Azul from your (running iOS 5.x/6.x) home screen where have have all your apps we need to turn on mirroring
    On your iPhone 4S/5 or iPad 2 or 3, double-click the Home  Button to view your recently-used apps.
    Swipe all the way to the right to until you see the  icon.
    Note: If the icon does not appear, go to the "If AirPlay Mirroring is not visible or available on your mobile iOS device" section.
    Tap the  icon to see the list of available AirPlay devices.
    Enable AirPlay Mirroring in this menu by tapping on an available Apple TV, then sliding the Mirroring slider to ON.
    Now you should be seeing your iPad/iPhone on your TV.
    Start up Azul now and using the settings icon on the top right corner go to the option that say "TV out" ON.
    When you do that you will see an Orange screen
    Now click "Done" and play the video you want to watch and it will AirPlay

  • Updating ipod touch to os5.1  got an error message "cannot connect the ipod touch because the pairing record is missing"   don't know what this means or how to fix but am stuck, only option is to answer ok and close the error box.  Any ideas?

    Updating ipod touch to os5.1  got an error message "cannot connect the ipod touch because the pairing record is missing"   don't know what this means or how to fix but am stuck, only option is to answer ok and close the error box.  Any ideas?

    #1
    - Try another cable. The cable for 5G iPod (lightning connector) seems to be more prone to failure than the older cable.
    - If a 5G iPod               
    Iphone 5 lightning port charging problem - SOLUTION!
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar
    #1.1 n/a because the errror message overrides it
    #2 see #1
    #3 iOS: Device not recognized in iTunes for Mac OS X
    But could be caused by #1
    #4 Covered by previous ones
    #5 Obvious jpegs are photos and thus will not sync as videos. Also see:
    iTunes: May be unable to transfer videos to iPhone, iPad, or iPod
    iTunes: Frequently asked questions about viewing and syncing videos
    #6 iOS: If you can't back up or restore from a backup in iTunes
    First #7 See #6
    Second #7 You have so many other problems resolve those first
    #8 Resolve other problems first

Maybe you are looking for

  • URGENT---Automatic payment run-Vendor open item clearing

    When I run the payment program, it ran without any error, however, the vendor account was not cleared. The balance in GL and Vendor account remains the original amounts. And the Vendor line items which were supposed to be cleared thru F110, are now s

  • Can we put condition for color in bex query designer

    hi all, can any one guide me how to put a condition for color settings in query designer for example: i have a key figure like ANSWERED%.in analyser it should display in red if  answered% exceeds 95%. please help me in this issue. regards Vamshi D Kr

  • Displaying characters on the Web

    Hi All, I have this script that brings data from a DB. <?php $conn = oci_connect('my_user', 'my_pwd', 'my_db'); $stid = oci_parse($conn, 'select arabic_name from emp where id = 1'); oci_execute($stid); echo "<table>\n"; while (($row = oci_fetch_array

  • After installing recent updates on MacBook, safari cannot open! Help!

    After installing the updates that were available for the MacBook, I now cannot open safari due to some error..Please help

  • Time Capsule and Linksys Buffalo NAS

    I am struggling with my new TC and looking for some pointers. What I want to be able to do is have setup my network they way it used to be before my linksys router crapped out... only now with TC I want the added time machine backup capability. what