• 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
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Java applications that retrieve and keep track of persistent data resulting from it

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Of recent i developed a basic reservation application for a number of transportation systems. I could get the date and time of the reservation and other requirement of the application. What i actually want from this post is for some one to give me a tip on how to go about making the application check the number of users that can make a reservation beyond real time. I mean if the application can been programmed such that only twenty people can make a reservation ( by entering their details in a form) the program should be able to keep track of the number of users even after the program as stopped running ( like shut down till the next day) for sometime. I want a situation such that the program can still check from the present count when loaded again. I precisely want the medium where the data will be checked and maintained to be a text file and not necessarily a database ( if the answer can address that of database storage, i'll appreciate it as well). I'm interested in seeing this happen with a desktop application. I just interested in someone assisting with the specific java package that can do this. I'll appreciate sample codes to highlight the answer.

olakunle oladipo oni
 
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are many ways of achieving persistent data storage, the best one to use depends on many factors so I can't advise on that but they generally fall into 2 categories either flat files or databases.
If the data is complex, dynamic and/or large then a database is probably but the best option. If you feel a file is the way to go then you need to decide how to store the data. There are many options available such as Property files, CSV text files and XML files to name a few.
 
ice is for people that are not already cool. Chill with this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic