• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Persistence...

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a screen where i have 2 input fields. One is TextField where user can enter and the second one is DropDown Box.I have a data which comes from database and once i get it, i display it in the dropdown box, so user can select from the DropDown Box.
The thing is the values which i get from database, i should be able to store in a some persistent state.
Advantage is i don't have to query it again and again and also the other application can also access that data without going to database. I don't want to use Session or any server side storage.
Can anyone help me in storing the values in java bean or some toher java object and storing in persistence way.
Thanks,
Senthil
 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let me make sure I understand your question:
You need some persistence mechanism but. . .
1. You don't want to store it in the session
2. You don't want to store it on the server
3. You have it in the database but you don't want to keep retrieving it from there.
This seems very limited. However, there are two other possible mechanisms that I can think but of course there are always more . . .
1. Store values in Cookies (bad idea if data is insecure or user doesn't accept cookies)
2. Store the data in an XML file and then use XPath to quickly retrieve necessary values.
These are just ideas. None of which I have really used extensively but, given your stated limitations, they might work for you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic