• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Olakunle Oladipo Oni
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!