How to store data in hashmap so that it can be used by different methods.

Hello,
I have an ADF/JSF application and the database is DRM. The program gets data from DRM into this hashmap. Program needs this data frequently. Getting this HashMap is very resource intensive due to a lot of data it has.
I want to get the data in HashMap once ( I can do this - no problem).  But where/how do I keep it so that different methods can just use this and not make individual trips to DRM? It may be a very basic java question but I seem to be stuck :)
I am not very concerned about the HashMap part, it can be any collection - the question is of storing it so that it can be used over and over.
Thanks,

User,
If I understand you correctly, you have a JSF application that needs to store data in a HashMap such that it can be accessed over and over? You could put the hashmap into an appropriately-scoped managed bean and access it from there. I'm not sure what a "DRM" is (a digital rights management database, perhaps, in which case it's a "database"), so there is something special about a "DRM" that we need to know, please share.
John

Similar Messages

  • How do I move a picture so that it can be used in multiple projects without removing it from current location

    I am organizing several hockey pictures and I am trying to make various projects from the pictures and sometimes I want the same picture in more than one project/album/etc.. Each time I duplicate the version in attempts to move just one of the versios, both are moved to new location and removed from current location. I would greatly appreciate help. Thank you

    Piling on  :  read this.  And then read this.
    Think this:
    Projects are _storage_ containers.
    Albums are _viewing_ containers.
    (In mind keep this:  The naming of "Projects" is the worst interface decision made by Aperture's designers.)
    The Image that is created when you import a digicam file is _stored_ in one and in only one container.
    You can _view_ the Image in as many viewing containers as you want.
    Store them by shoot unless you have a better, complete, workflow.  Don't ever move them from their storage container, except to delete them.
    View them by _output project (small "p")_.  Create as many of these as you need.

  • What is a cube? how we store data in that? how we fetch data from cube?

    Hi,
    What is a cube? how we store data in that? how we fetch data from cube?
    Regards.
    venkat

    >
    venkey B wrote:
    > Hi,
    >
    >
    > What is a cube? how we store data in that? how we fetch data from cube?
    >
    >
    > Regards.
    >
    > venkat
    Hi Venkat,
    I guess you mean an infocube from the SAP BI product. I propose to look at the forum for Business Intelligence to find your answers.
    E.g. SAP POS DM writes the sales data in infocubes.....

  • How to store data (in tdm files)

    I'm looking for advice on how to store data in tdm/tdx files.
    The main challenge is like this: At regular time intervals there is new data available (say every 10 minutes there are 10 minutes of new data available). All data is time based. So every ten minutes I may create a new tdm/tdx file containing this data segment. However, when i want to analyze the data i dont necessarily want to view 10 minutes of data from all channels, but maybe 20 hours of data from one particular channel.
    The way I've achieved this so far is to manually load each 10 minute segment of this particular channel and then add these parts together. This is both time consuming and cumbersome. Is there a better way to do this that I've simply not discovered yet? Is there a better way to store data to simplify this process?
    One solution is of course to save data from several 10-minute frames in one file, but seeing as there is a never ending supply of data i cant simply save all data in one giant file, it has to be split up at some point, and the problem will still remain.
    One factor to have in mind here is that this is rather large amounts of data (maybe 10GB each day), so the option to simply load all the data into memory goes out the window rather quickly.
    Feel free to ask if I've not made myself very clear

    Hi salte,
    If your test ever ended, and if you had LabVIEW 8.20 or higher, I would recommend using a TDMS file, which handles data appeands flawlessly.  DIAdem 10.1 now also does data reduction and index windowing during file loading for TDM / TDMS / DataPlugin files, so that you could easily load out only the part of the file you wanted to look at.  But since you describe your data acquisition as never stopping and amassing 10 GB per day, I agree that it would be impractical to use only 1 data file.  So we are stuck with some number of files which each contain a part of your measurement.  This approach can have advantages, since you can save operational properties for each "buffer" such as average value, dominant frequency, ambient room temperature, etc., and later on you can use the DataFinder to query out only the data buffers which meet specific conditions based on these properties.  The problem remains to load and assemble data based on multiple files.  This is an old problem in DIAdem, and one for which I have an efficient and I hope satisfactory workaround application.  It does what you describe already doing in the minimum amount of time and with the minimum amount of user interaction, and it can be highly parametrized to suit your particular situation.  The ideal way to start the application would be as part of a ResultsList custom menu.  This would enable you to query out the buffers you wanted, highlight those rows in the ResultsList, right-click and choose your custom menu, and WHAM! the selected buffers for your queried channel(s) are automatically appended together in the DataPortal.  Launching from a ResultsList custom menu would mean that you could skip the file dialog and just read out the data sources directly from the ResultsList selection.
    Let me know what you think,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Importing Data from Multiple DataPlugin Files.zip ‏198 KB

  • How to store data in ipad from computer

    please explain me how to store data (music video & pictures) in  ipad from any personal computer...kindly explain me in simple steps...

    The iPad can only sync with one computer.  To do this you need to have iTunes installed on the computer and have it associated with your Apple ID.  you can then use iTunes to transfer music, movies and pictures from that computer, and that computer only.
    iOS: Syncing your data with iTunes
    http://support.apple.com/kb/ht1386
    If you need to get files from other computers, you would need a 3rd party App that can handle the formats you wish to transfer, and possibly transfer them either through iTunes file sharing or Wifi transfer depending on what the App supports.
    iOS: About File Sharing
    http://support.apple.com/kb/ht4094

  • How can I transfer and store data from my PC on the ipad without using icloud

    I am a new user having received the iPad air/2 from my family as an 80th birthday gift. (at my request).
    At this stage my principal usage is to transfer photos for PC to show family when visiting. I tried iTunes but it caused many problems with my PC, so I un-installed it. I found an ap which did the job simply and easily via wi fi transfer.
    My other main usage is to be able to play my music transferred from my PC to the ipad and held in it's memory so that it can be used even when off line.
    In other words iCloud doesn't seem to be able to do this.
    I sent myself a song via an email, downloaded it on to the ipad, listened to it, then closed the email.
    I cannot now find where that song has got to to retrieve... ipad search says it can't find it.
    Basically I want to transfer a folder of music into the ipad and play them back at will.
    Can anyone help me?
    Sorry to be so longwinded.. cheers Ted
    My PC runs Windows 7 64 bit.
    iPad is IOS8 I believe with 64 GB memory.

    You shouldn't be worrying about 'hackers'. Apple have good security & so long as you pick good passwords the data should be safe.
    There are parts of using iOS & iTunes that requires an Apple ID & iCloud, however you can disable many of the feature you do not need, and avoid syncing any files into iCloud. It can be annoying, but a lot of the services help to make backups easy.
    You may want to visit into an Apple store if you are near one, they may try to sell you on the benefits of iCloud (it's kind of their job), but they may also be able to help you get the iPad under control. See if you can get the PC setup with iTunes, that is probably where you need to start.
    Good luck with it

  • How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices?  Mountain Lion is not an option for my older model and Lion is no longer available at App store.

    How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices?  Mountain Lion is not an option for my older model and Lion is no longer available at App store. 

    Call Apple's online store's telesales agents: 1-800-MY-APPLE (1-800-692-7753) or Customer Service and Sales Support at 1-800-676-2775. For Lion you'll get a redemptions code via e-mail and need to DL from the Mac Apple Store (requires SL 10.6.6+).

  • How to read data from a file that was formatted by excel?

    Hi everyone, I'm familiar with java.io and the ability to read from files, can anyone tell me how to read data from a file that was formatted by excel? Or at least give me some web references so that I can learn about it?

    http://jakarta.apache.org/poi/hssf/index.html
    HSSF stands for Horrible Spreadsheet Format, but it still works!

  • Before removing iPhoto (latest update crashed the app), I accidently removed it from my purchased Apps from the App Store. I accept iPhoto when I search for it, but does not put it back in my list. How do I get this back so that I can reinstall iPhoto?

    Before removing iPhoto (latest update crashed the app), I accidently removed it from my purchased Apps from the App Store. I accept iPhoto when I search for it, but does not put it back in my list. How do I get this back so that I can reinstall iPhoto?
    Thank you.

    I found the answer just after posted this.  Thanks to a user named CloudWalker.  Solution is to go in AppStore, View Account under "Store" Menu and unhide any purchases.

  • How to store data from textfile to vector and delete a selected row.

    Can someone teach me how to store data from textfile to vector and delete a selected row. And after deleting, i want to write the changes in my textfile.
    Do someone has an idea? :)

    nemesisjava wrote:
    Can someone teach me how to store data from textfile to vector and delete a selected row. And after deleting, i want to write the changes in my textfile.
    Do someone has an idea? :)What's the problem? What have you done so far? What failed?
    What you described should be pretty easy to do.

  • How can i sort a hashmap so that it can have duplicates

    i need to sort a hashmap so that it can have duplicates.

    How would you obtain the correct value, though? Suppose I add the values "fido", "rover", "mandibles", "fluffy" against the key "dog": How would you retrieve "fido"?
    This goes against the grain of what a Map is for, what are you actually trying to do?

  • How LDAP stores data?

    What is the diff bet. LDAP & Data base?
    How LDAP stores data?

    LDAP uses a hierarchical tree structure. This is why LDAP queries are formed like ldap://mydomain.com/...

  • I have an iPad that I want to update to IOS 5.1. I have several apps that each were installed using a different iTunes ID. How can I update the IOS without losing the apps?

    I have an iPad that I want to update to IOS 5.1. I have several apps that each were installed using a different iTunes ID. How can I update the IOS without losing the apps?

    To update your phone requires using the latest version of iTunes, on your computer, as well as Internet access. The update to iOS 5.0 or higher is an erase/restore deal, so you not only have to make sure all of the content, currently on your phone, is on your computer and accessible, you need to update iTunes first, have Internet access, then update your phone. There is no way around this fact. You could go to an Apple store or use another computer, but you run the risk of losing all of your data it you do that.

  • How can I use a different Apple ID withthe App Store?

    When I access the App Store from my iPhone 3G it asks me to enter the password for an Apple ID.
    How can I use a different Apple ID with the App Store?

    It will use the account you are currently signed into with iTunes when you synced. So in iTunes, change your account, then sync. Then the iPhone will use that one.

  • II  downloaded the OS X version 10.9 and my iPhoto version 9.2.3 will n.ot open.  I get a message that I can't use this version of the application I photo with this version of OSX.  What do I do now and how do I get the photos out of the old version?

    I downloaded the OS X version 10.9 and my Iphoto version 9.2.3 will not open.  I get a message that I can't use this version of the application I photo with this version of OS X.  How do I upgrade to a i photo that will run on 10.9.  Do I purchase a new program or can I do just an download?

    Check the "Purchases" page in the Mac App Store and see if there is a more recent version there already waiting for you.

Maybe you are looking for

  • Had forgotten administrator password on hp. Mini 210-1000 no reset disc

    Hp mini 210-1000 windows 7 service pack 1 32 bit operating system windows activated. Workgroup. Product I'd . 00342-OEM-8992752-30008 loc I'd 1033

  • Load images in order

    I have an image gallery of 6 images on a frame of my timeline. what I want to happen is instead of all images trying to load up at the same time when at that point in the timeline I want the 1st image to process and load then move on to the 2nd image

  • _WLStub instead of regular stub sometimes

    Hi, Could anybody enlighten me the following problem? Im using Orbix 6.1 and Weblogic 8.1 SP 1. In one module of application the stub used to access corba server has _WLStub suffix, instead of regular stubs used in all other modules. In WL 8.2 SP2 an

  • Picking for Production Order

    Hi SAP PP Gurus   Can any body know about picking for production order using T-Code CO27 and its related setting in customizations because i use it and i get error message "No data exists for chosen selection" . Regards, Rajesh.

  • Iphone 4 goes into large font

    suddenly, when iphone 4 turned on, it goes into a large font, and therefore i can't access the whole screen, and sometimes can't sign on access apps, use phone, because the font size is so  large that i only seen 30% of the sceen why, how, and how to